Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-28 17:00:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_check_plugged

Proto:struct blk_plug_cb *blk_check_plugged(blk_plug_cb_fn unplug, void *data, int size)

Type:struct blk_plug_cb

Parameter:

TypeParameterName
blk_plug_cb_fnunplug
void *data
intsize
1745  plug = plug
1748  If Not plug Then Return NULL
1751  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(cb, & md requires an unplug callback , list)
1752  If callback == unplug && data == data Then Return cb
1756  BUG_ON(size < size of cb )
1757  cb = 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).
1758  If cb Then
1759  data = data
1760  callback = unplug
1761  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1763  Return cb