Assuring that a device node exists

6.14 LPAR mode

Normally, your distribution creates a device node for you. Alternatively, use the mknod command to create one.

The CHSC subchannel device driver provides a misc character device: /dev/chsc. If your distribution does not create the device node for you (for example, with udev), you must create a node.

If your distribution provides the CHSC subchannel device driver as a separate module, be sure to load the module before you check for the node.

To check whether there is already a node issue this command:
# find /dev -name chsc
If there is no node, use major number 10 and a dynamic minor number to create one. To find the minor number, issue:
# grep chsc /proc/misc
 57 chsc
Issue:
# mknod /dev/chsc c 10 57

An application can issue ioctls on this device to obtain information about the current I/O configuration and to dynamically change the I/O configuration.