Function report | 
Source Code:fs\block_dev.c | 
Create Date:2022-07-28 20:14:51 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:lookup_bdev - lookup a struct block_device by name*@pathname: special file representing the block device* Get a reference to the blockdevice at @pathname in the current* namespace if possible and return it. Return ERR_PTR(error)* otherwise.
Proto:struct block_device *lookup_bdev(const char *pathname)
Type:struct block_device
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | pathname | 
| 2193 | error = kern_path(pathname, llow links at the end , & path) | 
| 2202 | If Not may_open_dev( & path) Then Go to fail | 
| 2205 | bdev = bd_acquire(inode) | 
| 2208 | out : | 
| 2210 | Return bdev | 
| 2211 | fail : | 
| 2213 | Go to out | 
| Name | Describe | 
|---|---|
| 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(). | 
| quotactl_block | look up a superblock on which quota ops will be performed* - use the name of a block device to find the superblock thereon | 
| 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  |