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_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
Proto:int cdev_device_add(struct cdev *cdev, struct device *dev)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cdev * | cdev | |
| struct device * | dev | 
| 536 | rc = 0 | 
| 538 | If dev_t, creates the sysfs "dev" Then | 
| 546 | rc = device_add(dev) | 
| 547 | If rc Then dev_del() - remove a cdev from the system*@p: the cdev structure to be removed* cdev_del() removes @p from the system, possibly freeing the structure* itself | 
| 550 | Return rc | 
| 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  |