Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_head

Proto:static void add_head(struct klist *k, struct klist_node *n)

Type:void

Parameter:

TypeParameterName
struct klist *k
struct klist_node *n
96  spin_lock( & k_lock)
97  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.
98  spin_unlock( & k_lock)
Caller
NameDescribe
klist_add_headklist_add_head - Initialize a klist_node and add it to front.*@n: node we're adding.*@k: klist it's going on.