posix.major()

posix.major(device) → major number

Extracts a device major number from a raw device number.