Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\proc.c Create Date:2022-07-28 18:25:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:find_ge_key

Proto:static struct key *find_ge_key(struct seq_file *p, key_serial_t id)

Type:struct key

Parameter:

TypeParameterName
struct seq_file *p
key_serial_tid
80  user_ns = seq_user_ns(p)
81  n = rb_node
82  struct key * minkey = NULL
84  When n cycle
85  key = rb_entry(n, structkey, serial_node)
86  If id < key serial number Then
89  n = rb_left
90  Else if id > key serial number Then
91  n = rb_right
92  Else
93  minkey = key
94  Break
96  key = NULL
99  If Not minkey Then Return NULL
102  cycle
103  If kuid_has_mapping(user_ns, uid) Then Return minkey
105  n = rb_next( & serial_node)
106  If Not n Then Return NULL
108  minkey = rb_entry(n, structkey, serial_node)
Caller
NameDescribe
proc_keys_start