函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder)

返回类型:struct block_device

参数:

类型参数名称
dev_tdev
fmode_tmode
void *holder
1835  bdev等于bdget(dev)
1836  如果非bdev则返回:错误号
1839  err等于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
1840  如果err则返回:错误号
1843  返回:bdev
调用者
名称描述
swsusp_checkswsusp_check - Check for swsusp signature in the resume device