函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_worker_info - print out worker information and description*@log_lvl: the log level to use when printing*@task: target task* If @task is a worker and currently executing a work item, print out the* name of the workqueue being serviced and worker

函数原型:void print_worker_info(const char *log_lvl, struct task_struct *task)

返回类型:void

参数:

类型参数名称
const char *log_lvl
struct task_struct *task
4606  work_func_t * fn = NULL
4607  char name[WQ_NAME_LEN] = {}
4608  char desc[WORKER_DESC_LEN] = {}
4609  struct pool_workqueue * pwq = NULL
4610  struct workqueue_struct * wq = NULL
4613  如果非任务标志按位与进程处于工作队列中的值则返回
4620  worker等于kthread_probe_data(task)
4626  probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
4627  probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
4628  probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
4629  probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
4630  probe_kernel_read(): safely attempt to read from a location*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
4632  如果fnname[0]或desc[0]则
4633  printk("%sWorkqueue: %s %ps", log_lvl, name, fn)
4634  如果字符串比较打印标准信息(" (%s)", desc)
4636  打印标准信息("\n")
调用者
名称描述
sched_show_task
dump_stack_print_infodump_stack_print_info - print generic debug info for dump_stack()*@log_lvl: log level* Arch-specific dump_stack() implementations can use this function to* print out the same debug information as the generic dump_stack().