函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lowest_in_progress

函数原型:static async_cookie_t lowest_in_progress(struct async_domain *domain)

返回类型:async_cookie_t

参数:

类型参数名称
struct async_domain *domain
83  struct async_entry * first = NULL
84  ret等于finity cookie
87  spin_lock_irqsave( & async_lock, flags)
89  如果domain
90  如果非链表为空first等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & pending, structasync_entry, domain_list)
93  否则
94  如果非链表为空first等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & async_global_pending, structasync_entry, global_list)
99  如果firstret等于cookie
102  spin_unlock_irqrestore( & async_lock, flags)
103  返回:ret
调用者
名称描述
async_synchronize_cookie_domainasync_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