Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:klist_add_before - Init a klist_node and add it before an existing node*@n: node we're adding.*@pos: node to put @n after

Proto:void klist_add_before(struct klist_node *n, struct klist_node *pos)

Type:void

Parameter:

TypeParameterName
struct klist_node *n
struct klist_node *pos
164  k = knode_klist(pos)
166  klist_node_init(k, n)
167  spin_lock( & k_lock)
168  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
169  spin_unlock( & k_lock)