函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sed to show worker information through /proc/PID/{comm,stat,status}

函数原型:void wq_worker_comm(char *buf, size_t size, struct task_struct *task)

返回类型:void

参数:

类型参数名称
char *buf
size_tsize
struct task_struct *task
4821  off等于strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
4822  如果off小于0则返回
4826  mutex_lock( & wq_pool_attach_mutex)
4828  如果任务标志按位与进程处于工作队列中
4829  worker等于kthread_data(task)
4830  pool等于A: the associated pool
4832  如果pool
4851  mutex_unlock( & wq_pool_attach_mutex)