Linux - list of registered devices
问题 I have a linux driver that registers a char device for every compatible device-node in the Flattened-Device-Tree(FDT). On initialization, the driver allocates a major device number and a range of minor device numbers. when i look at /proc/devices , this major device number is listed. Now, when I define 2 device-nodes, compatible with that driver, in the FDT, the driver's platform-probe-function get's called twice, and 2 char devices are registered under the same major device number, but with