Assuring that the required device node exists

6.10 z/VM guest

You need a device node for a miscellaneous character device to access the monitor DCSS.

About this task

Your distribution might create this device node for you (for example, by using udev).

Procedure

Perform these steps:

  1. To find out whether there is already a device node, issue this command:
    # find /dev -name monreader
  2. If there is no device node, you must create one. To find out the major and minor number for your monitor device, read the dev attribute of the device representation in sysfs:
    # cat /sys/class/misc/monreader/dev
    The value of the dev attribute is of the form <major>:<minor>.
  3. To create a device node, issue a command of the form:
    # mknod <node> c <major> <minor>
    where <node> is your device node.

Example

To create a device node /dev/monreader:
# cat /sys/class/misc/monreader/dev
10:63
# mknod /dev/monreader c 10 63
In the example, the major number was 10 and the minor 63.