函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:____bpf_probe_write_user

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

返回类型:u64

参数:

类型参数名称
void *unsafe_ptr
const void *src
u32size
298  如果此条件成立可能性小(为编译器优化)(in_interrupt() || flags & (I am a kernel thread | Getting shut down ))则返回:负EPERM
301  如果此条件成立可能性小(为编译器优化)(uaccess_kernel())则返回:负EPERM
303  如果此条件成立可能性小(为编译器优化)(!Blindly accessing user memory from NMI context can be dangerous* if we're in the middle of switching the current user task or* switching the loaded mm. It can also be dangerous if we* interrupted some kernel code that was temporarily using a* different mm.)则返回:负EPERM
306  返回:probe_user_write(): safely attempt to write to a location in user space*@dst: address to write to*@src: pointer to the data that shall be written*@size: size of the data chunk* Safely write to address @dst from the buffer at @src. If a kernel fault