函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\verifier.c Create Date:2022-07-27 14:11:43
Last Modify:2022-05-19 20:02:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_pkt_ptr_alignment

函数原型:static int check_pkt_ptr_alignment(struct bpf_verifier_env *env, const struct bpf_reg_state *reg, int off, int size, bool strict)

返回类型:int

参数:

类型参数名称
struct bpf_verifier_env *env
const struct bpf_reg_state *reg
intoff
intsize
boolstrict
2547  如果非strictsize恒等于1则返回:0
2558  ip_align等于2
2560  reg_off等于Add two tnums, return @a + @b
2561  如果非Returns true if @a is known to be a multiple of @size.*@size must be a power of two.
2564  Format a tnum as a pair of hex numbers (value; mask)
2565  verbose(env, "misaligned packet access off %d+%s+%d+%d size %d\n", ip_align, tn_buf, Fixed part of pointer offset, pointer types only , off, size)
2568  返回:负EACCES
2571  返回:0
调用者
名称描述
check_ptr_alignment