Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:async_synchronize_cookie_domain - synchronize asynchronous function calls within a certain domain with cookie checkpointing*@cookie: async_cookie_t to use as checkpoint*@domain: the domain to synchronize (%NULL for all registered domains)* This function

Proto:void async_synchronize_cookie_domain(async_cookie_t cookie, struct async_domain *domain)

Type:void

Parameter:

TypeParameterName
async_cookie_tcookie
struct async_domain *domain
290  starttime = starttime
292  If initcall_debug && Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. < SYSTEM_RUNNING Then
293  pr_debug("async_waiting @ %i\n", task_pid_nr(current process))
294  starttime = ktime_get()
297  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(async_done, lowest_in_progress(domain) >= cookie)
299  If initcall_debug && Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. < SYSTEM_RUNNING Then
300  endtime = ktime_get()
301  delta = Subtract two ktime_t variables. rem = lhs -rhs: (endtime, starttime)
303  pr_debug("async_continuing @ %i after %lli usec\n", task_pid_nr(current process), (longlong)Convert ktime_t to nanoseconds >> 10)
Caller
NameDescribe
async_synchronize_full_domainasync_synchronize_full_domain - synchronize all asynchronous function within a certain domain*@domain: the domain to synchronize* This function waits until all asynchronous function calls for the* synchronization domain specified by @domain have been done.
async_synchronize_cookieasync_synchronize_cookie - synchronize asynchronous function calls with cookie checkpointing*@cookie: async_cookie_t to use as checkpoint* This function waits until all asynchronous function calls prior to @cookie* have been done.