函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpu_map_enqueue

函数原型:int cpu_map_enqueue(struct bpf_cpu_map_entry *rcpu, struct xdp_buff *xdp, struct net_device *dev_rx)

返回类型:int

参数:

类型参数名称
struct bpf_cpu_map_entry *rcpu
struct xdp_buff *xdp
struct net_device *dev_rx
673  xdpf等于Convert xdp_buff to xdp_frame
674  如果此条件成立可能性小(为编译器优化)(!xdpf)则返回:负EOVERFLOW
678  used by cpumap 等于dev_rx
680  Runs under RCU-read-side, plus in softirq under NAPI protection.* Thus, safe percpu variable access.
681  返回:0