4.2.10 getmajor

dev_t getmajor(dev_t dev)

The getmajor function returns the major device number for the device that is specified by dev.