Assuring that a device node exists

7.1 LPAR mode z/VM guest KVM guest

The CLP device driver provides a misc character device, /dev/clp. If your distribution does not create the device node for you, create a node.

Example

Check for an existing node:
# find /dev -name clp
If no node is found, use major number 10 and a dynamic minor number to create one. Issue the following command to find the minor number:
# grep clp /proc/misc
58 clp
The minor number of the example is 58. Issue an mknod command to create the node:
# mknod /dev/clp c 10 58

Applications can issue an ioctl on this device to obtain information about the available CPI functions.