函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_offload_dev_create

函数原型:struct bpf_offload_dev *bpf_offload_dev_create(const struct bpf_prog_offload_ops *ops, void *priv)

返回类型:struct bpf_offload_dev

参数:

类型参数名称
const struct bpf_prog_offload_ops *ops
void *priv
678  lock for writing
679  如果非offdevs_inited
680  err等于hashtable_init - initialize a new hash table*@ht: hash table to be initialized*@params: configuration parameters* Initializes a new hash table based on the provided configuration* parameters
681  如果err
683  返回:错误号
685  offdevs_inited = true
687  lease a write lock
689  offdev等于分配内存并置零
690  如果非offdev则返回:错误号
693  ops等于ops
694  priv等于priv
695  初始化链表头
697  返回:offdev