函数逻辑报告 |
Source Code:block\genhd.c |
Create Date:2022-07-27 18:53:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lk_alloc_devt - allocate a dev_t for a partition*@part: partition to allocate dev_t for*@devt: out parameter for resulting dev_t* Allocate a dev_t for block device
函数原型:int blk_alloc_devt(struct hd_struct *part, dev_t *devt)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct hd_struct * | part | |
dev_t * | devt |
490 | disk等于part_to_disk(part) |
495 | devt等于MKDEV( major number of driver , first_minor + partno) |
496 | 返回:0 |
502 | spin_lock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.) |
504 | spin_unlock_bh( & For extended devt allocation. ext_devt_lock prevents look up* results from going away underneath its user.) |
511 | 返回:0 |
名称 | 描述 |
---|---|
__device_add_disk | __device_add_disk - add disk information to kernel list*@parent: parent device for the disk*@disk: per-device partitioning information*@groups: Additional per-device sysfs groups*@register_queue: register the queue if set to true* This function registers |
add_partition | Must be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |