函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:____bpf_probe_read_user

函数原型:static inline __attribute__((__always_inline__)) u64 ____bpf_probe_read_user(void *dst, u32 size, const void *unsafe_ptr)

返回类型:u64

参数:

类型参数名称
void *dst
u32size
const void *unsafe_ptr
144  ret等于probe_user_read(): safely attempt to read from a location in user space*@dst: pointer to the buffer that shall take the data*@src: address to read from*@size: size of the data chunk* Safely read from address @src to the buffer at @dst. If a kernel fault
146  如果此条件成立可能性小(为编译器优化)(ret < 0)则memset(dst, 0, size)
149  返回:ret