Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\nfs_common\grace.c Create Date:2022-07-28 20:30:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:locks_start_grace*@net: net namespace that this lock manager belongs to*@lm: who this grace period is for* A grace period is a period during which locks should not be given* out

Proto:void locks_start_grace(struct net *net, struct lock_manager *lm)

Type:void

Parameter:

TypeParameterName
struct net *net
struct lock_manager *lm
31  grace_list = net_generic(net, grace_net_id)
33  spin_lock( & grace_lock)
34  If list_empty - tests whether a list is empty*@head: the list to test. Then 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.
36  Else WARN(1, "double list_add attempt detected in net %x %s\n", inum, (net == & init_net) ? "(init_net)" : "")
39  spin_unlock( & grace_lock)