The makedev() function returns a formatted device number on success and NODEV on failure. The maj argument is the
major number. The min argument is the minor number. The makedev() function can be used to create a device number for input to mknod(2).
The major() function returns the major number component from device.
The minor() function returns the minor number component from device.