函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:heck_flush_dependency - check for flush dependency sanity*@target_wq: workqueue being flushed*@target_work: work item being flushed (NULL for workqueue flushes)* %current is trying to flush the whole @target_wq or @target_work on it

函数原型:static void check_flush_dependency(struct workqueue_struct *target_wq, struct work_struct *target_work)

返回类型:void

参数:

类型参数名称
struct workqueue_struct *target_wq
struct work_struct *target_work
2591  work_func_t target_func = target_work ? func : NULL
2594  如果hot fields used during command issue, aligned to cacheline 按位与WQ_MEM_RECLAIM则返回
2597  worker等于rrent_wq_worker - return struct worker if %current is a workqueue worker
2599  WARN_ONCE(flags & Allocating memory , "workqueue: PF_MEMALLOC task %d(%s) is flushing !WQ_MEM_RECLAIM %s:%ps", pid, comm, I: workqueue name , target_func)
2602  WARN_ONCE(worker && ((flags & (WQ_MEM_RECLAIM | __WQ_LEGACY)) == WQ_MEM_RECLAIM), "workqueue: WQ_MEM_RECLAIM %s:%ps is flushing !WQ_MEM_RECLAIM %s:%ps", name, L: current_work's fn , I: workqueue name , target_func)
调用者
名称描述
flush_workqueuelush_workqueue - ensure that any scheduled work has run to completion.*@wq: workqueue to flush* This function sleeps until all work items which were queued on entry* have finished execution, but it is not livelocked by new incoming ones.
start_flush_work