函数逻辑报告 |
Source Code:block\genhd.c |
Create Date:2022-07-27 18:53:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:gister_blkdev - register a new block device*@major: the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If*@major = 0, try to allocate any unused major number.*@name: the name of the new block device as a zero terminated string
函数原型:int register_blkdev(unsigned int major, const char *name)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | major | |
| const char * | name |
| 357 | ret等于0 |
| 359 | mutex_lock( & block_class_lock) |
| 362 | 如果major恒等于0则 |
| 378 | 如果major大于等于BLKDEV_MAJOR_MAX则 |
| 379 | 打印错误信息("%s: major requested (%u) is greater than the maximum (%u) for %s\n", __func__, major, BLKDEV_MAJOR_MAX - 1, name) |
| 383 | 转到:out |
| 387 | 如果(p == NULL)则 |
| 393 | 长字符串复制 |
| 394 | next = NULL |
| 406 | 如果ret小于0则 |
| 409 | 释放内存 |
| 411 | out : |
| 413 | 返回:ret |
| 名称 | 描述 |
|---|---|
| genhd_device_init |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |