函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__get_task_comm

函数原型:char *__get_task_comm(char *buf, size_t buf_size, struct task_struct *tsk)

返回类型:char

参数:

类型参数名称
char *buf
size_tbuf_size
struct task_struct *tsk
1230  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
1231  strncpy(buf, comm, buf_size)
1232  task_unlock(tsk)
1233  返回:buf