1CDEV_ADD(9)                      Char devices                      CDEV_ADD(9)
2
3
4

NAME

6       cdev_add - add a char device to the system
7

SYNOPSIS

9       int cdev_add(struct cdev * p, dev_t dev, unsigned count);
10

ARGUMENTS

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

DESCRIPTION

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 2.6.       November 2011                     CDEV_ADD(9)
Impressum