函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void async_synchronize_cookie_domain(async_cookie_t cookie, struct async_domain *domain)

返回类型:void

参数:

类型参数名称
async_cookie_tcookie
struct async_domain *domain
290  starttime等于starttime
292  如果initcall_debugValues used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.小于SYSTEM_RUNNING
293  pr_debug("async_waiting @ %i\n", task_pid_nr(当前进程))
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  如果initcall_debugValues used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE.小于SYSTEM_RUNNING
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(当前进程), (longlong)Convert ktime_t to nanoseconds >> 10)
调用者
名称描述
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.