Linux driver development: some functions of the Linux kernel

1 MKDEV ma, mi
Constructs a device number, converting the major and minor numbers to the device number type (dev_t). The MKDEV macro shifts the major device number ( ma ) to the left by 20 bits, and then ANDs it with the minor device number ( mi ) to get the device number.
dev_t structure
12 digits of major equipment number

Guess you like

Origin blog.csdn.net/qq_43445867/article/details/131757735