函数逻辑报告 |
Source Code:fs\block_dev.c |
Create Date:2022-07-29 10:46:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lkdev_get - open a block device*@bdev: block_device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open @bdev with @mode. If @mode includes %FMODE_EXCL, @bdev is* open with exclusive access. Specifying %FMODE_EXCL with %NULL
函数原型:int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct block_device * | bdev | |
fmode_t | mode | |
void * | holder |
1723 | struct block_device * whole = NULL |
1729 | whole等于d_start_claiming - start claiming a block device*@bdev: block device of interest*@holder: holder trying to claim @bdev*@bdev is about to be opened exclusively |
1730 | 如果是错误则 |
1738 | 如果whole则 |
1742 | mutex_lock( & open/close mutex ) |
1756 | bd_write_holder = true |
1757 | disk_block_events(disk) |
1764 | 返回:res |
名称 | 描述 |
---|---|
register_disk | |
blkdev_get_by_path | lkdev_get_by_path - open a block device by name*@path: path to the block device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open the blockdevice described by the device file at @path. @mode* and @holder are identical to blkdev_get(). |
blkdev_get_by_dev | lkdev_get_by_dev - open a block device by device number*@dev: device number of block device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open the blockdevice described by device number @dev. @mode and |
blkdev_open | |
swsusp_swap_check | swsusp_swap_check - check if the resume device is a swap device* and get its index (if so)* This is called before saving image |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |