Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_probe_read_kernel_str_common

Proto:static __always_inline int bpf_probe_read_kernel_str_common(void *dst, u32 size, const void *unsafe_ptr, const bool compat)

Type:int

Parameter:

TypeParameterName
void *dst
u32size
const void *unsafe_ptr
const boolcompat
231  ret = security_locked_down(LOCKDOWN_BPF_READ)
233  If Value for the false possibility is greater at compile time(ret < 0) Then Go to out
244  ret = If compat Then strncpy_from_unsafe(dst, unsafe_ptr, size) Else strncpy_from_unsafe_strict(dst, unsafe_ptr, size)
246  If Value for the false possibility is greater at compile time(ret < 0) Then out :
248  memset(dst, 0, size)
249  Return ret
Caller
NameDescribe
____bpf_probe_read_kernel_str
____bpf_probe_read_compat_str