函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_offload_find_netdev

函数原型:static struct bpf_offload_netdev *bpf_offload_find_netdev(struct net_device *netdev)

返回类型:struct bpf_offload_netdev

参数:

类型参数名称
struct net_device *netdev
73  lockdep_assert_held( & Protects offdevs, members of bpf_offload_netdev and offload members* of all progs.* RTNL lock cannot be taken when holding this lock.)
75  如果非offdevs_inited则返回:NULL
77  返回:hashtable_lookup_fast - search hash table, without RCU read lock*@ht: hash table*@key: the pointer to the key*@params: hash table parameters* Computes the hash value for the key and traverses the bucket chain looking* for a entry with an identical key
调用者
名称描述
bpf_prog_offload_init
bpf_map_offload_map_alloc
__bpf_offload_dev_match