| Function report | 
| Source Code: block\bsg.c | Create Date:2022-07-28 17:37:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bsg_alloc_device
Proto:static struct bsg_device *bsg_alloc_device(void)
Type:struct bsg_device
Parameter:Nothing
| 200 | bd = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 201 | If Value for the false possibility is greater at compile time(!bd) Then Return NULL | 
| 204 | Process spin lock initialization( & lock) | 
| 205 | max_queue = BSG_DEFAULT_CMDS | 
| 206 | INIT_HLIST_NODE( & dev_list) | 
| 207 | Return bd | 
| Name | Describe | 
|---|---|
| bsg_add_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 |