Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\klist.c Create Date:2022-07-28 06:16:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:klist_put

Proto:static void klist_put(struct klist_node *n, bool kill)

Type:void

Parameter:

TypeParameterName
struct klist_node *n
boolkill
211  k = knode_klist(n)
212  ( = put
214  spin_lock( & k_lock)
215  If kill Then knode_kill(n)
217  If Not klist_dec_and_del(n) Then put = NULL
219  spin_unlock( & k_lock)
220  If put Then put(n)
Caller
NameDescribe
klist_delklist_del - Decrement the reference count of node and try to remove.*@n: node we're deleting.
klist_iter_exitklist_iter_exit - Finish a list iteration.*@i: Iterator structure.* Must be called when done iterating over list, as it decrements the* refcount of the current node. Necessary in case iteration exited before