Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Schedule a garbage collection run.* - time precision isn't particularly important

Proto:void key_schedule_gc(time64_t gc_at)

Type:void

Parameter:

TypeParameterName
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  If gc_at <= now || st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
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  Else if gc_at < key_gc_next_run Then
62  kdebug("DEFERRED")
63  key_gc_next_run = gc_at
64  expires = jiffies + (gc_at - now) * 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,
Caller
NameDescribe
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