| 函数逻辑报告 | 
| Source Code: block\genhd.c | Create Date:2022-07-27 18:52:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:disk_get_part - get partition*@disk: disk to look partition from*@partno: partition number* Look for partition @partno from @disk. If found, increment* reference count and return it.* CONTEXT:* Don't care.* RETURNS:
函数原型:struct hd_struct *disk_get_part(struct gendisk *disk, int partno)
返回类型:struct hd_struct
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct gendisk * | disk | |
| int | partno | 
| 139 | part等于__disk_get_part(disk, partno) | 
| 144 | 返回:part | 
| 名称 | 描述 | 
|---|---|
| blkpg_ioctl | |
| bdget_disk | dget_disk - do bdget() by gendisk and partition number*@disk: gendisk of interest*@partno: partition number* Find partition @partno from @disk, do bdget() on it.* CONTEXT:* Don't care.* RETURNS:* Resulting block_device on success, NULL on failure. | 
| blk_lookup_devt | |
| __blkdev_get | d_mutex locking:* mutex_lock(part->bd_mutex)* mutex_lock_nested(whole->bd_mutex, 1) | 
| devt_from_partuuid | devt_from_partuuid - looks up the dev_t of a partition by its UUID*@uuid_str: char array containing ascii UUID* The function will return the first partition which contains a matching* UUID value in its partition_meta_info struct. This does not search | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |