Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:____bpf_get_current_comm

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_get_current_comm(char *buf, u32 size)

Type:u64

Parameter:

TypeParameterName
char *buf
u32size
193  task = current process
195  If Value for the false possibility is greater at compile time(!task) Then Go to err_clear
198  strncpy(buf, * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), size)
204  buf[size - 1] = 0
205  Return 0
206  err_clear :
207  memset(buf, 0, size)
208  Return -EINVAL