getmajor

Returns the major device number for a specified device.

vmlinux`dev_t getmajor(vmlinux`dev_t))

The getmajor function returns the major device number for a specified device.