Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\filter.h Create Date:2022-07-28 06:07:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_ctx_narrow_access_offset

Proto:static inline u8 bpf_ctx_narrow_access_offset(u32 off, u32 size, u32 size_default)

Type:u8

Parameter:

TypeParameterName
u32off
u32size
u32size_default
760  access_off = off & size_default - 1
763  Return access_off
Caller
NameDescribe
convert_ctx_accessesvert load instructions that access fields of a context type into a* sequence of instructions that access fields of the underlying structure:* struct __sk_buff -> struct sk_buff* struct bpf_sock_ops -> struct sock
sysctl_convert_ctx_access