Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sed to show worker information through /proc/PID/{comm,stat,status}

Proto:void wq_worker_comm(char *buf, size_t size, struct task_struct *task)

Type:void

Parameter:

TypeParameterName
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  If off < 0 Then Return
4826  mutex_lock( & wq_pool_attach_mutex)
4828  If Per task flags (PF_*), defined further below: & I'm a workqueue worker Then
4829  worker = kthread_data(task)
4830  pool = A: the associated pool
4832  If pool Then
4851  mutex_unlock( & wq_pool_attach_mutex)