函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Schedule a garbage collection run.* - time precision isn't particularly important

函数原型:void key_schedule_gc(time64_t gc_at)

返回类型:void

参数:

类型参数名称
time64_tgc_at
54  now等于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.
56  kenter("%lld", gc_at - now)
58  如果gc_at小于等于nowst_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
59  kdebug("IMMEDIATE")
60  schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
61  否则如果gc_at小于key_gc_next_run
62  kdebug("DEFERRED")
63  key_gc_next_run等于gc_at
64  expires等于jiffiesgc_atnow的差乘HZ
65  mod_timer - modify a timer's timeout*@timer: the timer to be modified*@expires: new timeout in jiffies* mod_timer() is a more efficient way to update the expire field of an* active timer (if the timer is inactive it will be activated)* mod_timer(timer,
调用者
名称描述
key_garbage_collectorReaper for unused keys.
__key_instantiate_and_linkInstantiate a key and link it into the target keyring atomically. Must be* called with the target keyring's semaphore writelocked. The target key's* semaphore need not be locked as instantiation is serialised by* key_construction_mutex.
key_reject_and_linkkey_reject_and_link - Negatively instantiate a key and link it into the keyring.*@key: The key to instantiate.*@timeout: The timeout on the negative key.*@error: The error to return when the key is hit.
key_set_timeout
key_revokekey_revoke - Revoke a key