函数逻辑报告 |
Source Code:fs\char_dev.c |
Create Date:2022-07-29 10:32:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int cdev_add(struct cdev *p, dev_t dev, unsigned count)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct cdev * | p | |
dev_t | dev | |
unsigned | count |
486 | error等于kobj_map(cdev_map, dev, count, NULL, exact_match, exact_lock, p) |
491 | 增加引用计数对象 |
493 | 返回:0 |
名称 | 描述 |
---|---|
__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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |