函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\key.c Create Date:2022-07-27 19:50:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:key_set_timeout

函数原型:void key_set_timeout(struct key *key, unsigned timeout)

返回类型:void

参数:

类型参数名称
struct key *key
unsignedtimeout
719  expiry等于0
722  lock for writing
724  如果timeout大于0则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
调用者
名称描述
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.