Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\user_defined.c Create Date:2022-07-28 18:24:41
Last Modify:2020-03-18 08:02:01 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pdate a user defined key* - the key's semaphore is write-locked

Proto:int user_update(struct key *key, struct key_preparsed_payload *prep)

Type:int

Parameter:

TypeParameterName
struct key *key
struct key_preparsed_payload *prep
103  struct user_key_payload * zap = NULL
107  ret = key_payload_reserve - Adjust data quota reservation for the key's payload*@key: The key to make the reservation for
108  If ret < 0 Then Return ret
112  time at which key expires (or 0) = Expiry time of key
113  If key_is_positive - Determine if a key has been positively instantiated*@key: The key to check.* Return true if the specified key has been positively instantiated, false* otherwise. Then zap = dereference_key_locked(key)
115  rcu_assign_keypointer(key, Raw data [0])
116  Raw data [0] = NULL
118  If zap Then Post an RCU callback to be invoked after the end of an RCU grace* period. But since we have but one CPU, that would be after any* quiescent state.
120  Return ret