函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\nfs_common\grace.c Create Date:2022-07-29 11:05:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void locks_start_grace(struct net *net, struct lock_manager *lm)

返回类型:void

参数:

类型参数名称
struct net *net
struct lock_manager *lm
31  grace_list等于net_generic(net, grace_net_id)
33  加自旋锁
34  如果链表为空添加链表项
36  否则WARN(1, "double list_add attempt detected in net %x %s\n", inum, (net == & init_net) ? "(init_net)" : "")
39  自旋锁解锁