Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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
Caller
NameDescribe
bsg_add_device