Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:key_set_timeout

Proto:void key_set_timeout(struct key *key, unsigned timeout)

Type:void

Parameter:

TypeParameterName
struct key *key
unsignedtimeout
719  expiry = 0
722  lock for writing
724  If timeout > 0 Then expiry = ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems. + timeout
727  time at which key expires (or 0) = expiry
728  Schedule a garbage collection run.* - time precision isn't particularly important
730  lease a write lock
Caller
NameDescribe
keyctl_set_timeoutSet or clear the timeout on a key.* Either the key must grant the caller Setattr permission or else the caller* must hold an instantiation authorisation token for the key.* The timeout is either 0 to clear the timeout, or a number of seconds from
key_get_persistentGet the persistent keyring for a specific UID and link it to the nominated* keyring.