一、函数声明
#include <sys/sysmacros.h>
dev_t makedev(unsigned int maj, unsigned int min);
unsigned int major(dev_t dev);
unsigned int minor(dev_t dev);
A device ID consists of two parts: a major ID, identifying the class of the device, and a minor ID, identi‐
fying a specific instance of a device in that class. A device ID is represented using the type dev_t.
st_dev
This field describes the device on which this