Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:void print_worker_info(const char *log_lvl, struct task_struct *task)

Type:void

Parameter:

TypeParameterName
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  If Not ( Per task flags (PF_*), defined further below: & I'm a workqueue worker ) Then Return
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  If fn || name[0] || desc[0] Then
4633  printk("%sWorkqueue: %s %ps", log_lvl, name, fn)
4634  If strcmp(name, desc) Then Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.(" (%s)", desc)
4636  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("\n")
Caller
NameDescribe
sched_show_task