Function report |
Source Code:block\bsg.c |
Create Date:2022-07-28 17:37:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bsg_add_device
Proto:static struct bsg_device *bsg_add_device(struct inode *inode, struct request_queue *rq, struct file *file)
Type:struct bsg_device
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
struct request_queue * | rq | |
struct file * | file |
241 | lockdep_assert_held( & bsg_mutex) |
243 | If Not blk_get_queue(rq) Then Return ERR_PTR( - ENXIO) |
246 | bd = bsg_alloc_device() |
247 | If Not bd Then |
248 | blk_put_queue(rq) |
255 | hlist_add_head( & dev_list, bsg_dev_idx_hash(iminor(inode))) |
261 | Return bd |
Name | Describe |
---|---|
bsg_get_device |
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 |