Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\offload.c Create Date:2022-07-28 13:25:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_offload_dev_create

Proto:struct bpf_offload_dev *bpf_offload_dev_create(const struct bpf_prog_offload_ops *ops, void *priv)

Type:struct bpf_offload_dev

Parameter:

TypeParameterName
const struct bpf_prog_offload_ops *ops
void *priv
678  lock for writing
679  If Not offdevs_inited Then
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  If err Then
683  Return ERR_PTR(err)
685  offdevs_inited = true
687  lease a write lock
689  offdev = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
690  If Not offdev Then Return ERR_PTR( - ENOMEM)
693  ops = ops
694  priv = priv
695  Initialization list head
697  Return offdev