Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:to_klist_node

Proto:static struct klist_node *to_klist_node(struct list_head *n)

Type:struct klist_node

Parameter:

TypeParameterName
struct list_head *n
322  Return container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(n, structklist_node, n_node)
Caller
NameDescribe
klist_prevklist_prev - Ante up prev node in list.*@i: Iterator structure.* First grab list lock. Decrement the reference count of the previous* node, if there was one. Grab the prev node, increment its reference* count, drop the lock, and return that prev node.
klist_nextklist_next - Ante up next node in list.*@i: Iterator structure.* First grab list lock. Decrement the reference count of the previous* node, if there was one. Grab the next node, increment its reference* count, drop the lock, and return that next node.