Function report |
Source Code:fs\char_dev.c |
Create Date:2022-07-28 20:02:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dev_add() - add a char device to the system*@p: the cdev structure for the device*@dev: the first device number for which this device is responsible*@count: the number of consecutive minor numbers corresponding to this* device* cdev_add() adds the device
Proto:int cdev_add(struct cdev *p, dev_t dev, unsigned count)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cdev * | p | |
| dev_t | dev | |
| unsigned | count |
| 486 | error = kobj_map(cdev_map, dev, count, NULL, exact_match, exact_lock, p) |
| 493 | Return 0 |
| Name | Describe |
|---|---|
| __register_chrdev | __register_chrdev() - create and register a cdev occupying a range of minors*@major: major device number or 0 for dynamic allocation*@baseminor: first of the requested range of minor numbers*@count: the number of minor numbers required*@name: name of this |
| cdev_device_add | dev_device_add() - add a char device and it's corresponding* struct device, linkink*@dev: the device structure*@cdev: the cdev structure* cdev_device_add() adds the char device represented by @cdev to the system,* just as cdev_add does |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |