1CDEV_ADD(9) Char devices CDEV_ADD(9)
2
3
4
6 cdev_add - add a char device to the system
7
9 int cdev_add(struct cdev * p, dev_t dev, unsigned count);
10
12 p
13 the cdev structure for the device
14
15 dev
16 the first device number for which this device is responsible
17
18 count
19 the number of consecutive minor numbers corresponding to this
20 device
21
23 cdev_add adds the device represented by p to the system, making it live
24 immediately. A negative error code is returned on failure.
25
27Kernel Hackers Manual 3.10 June 2019 CDEV_ADD(9)