Function report |
Source Code:fs\block_dev.c |
Create Date:2022-07-28 20:14:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct block_device * | bdev | |
| fmode_t | mode | |
| void * | holder |
| 1723 | struct block_device * whole = NULL |
| 1728 | If mode & File is opened with O_EXCL (only set for block devices) && holder Then |
| 1738 | If whole Then |
| 1742 | mutex_lock( & open/close mutex ) |
| 1754 | If Not res && mode & le is open for writing && Not bd_write_holder && flags & GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE Then |
| 1756 | bd_write_holder = true |
| 1757 | disk_block_events(disk) |
| 1764 | Return res |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |