Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xsk_map_node_alloc

Proto:static struct xsk_map_node *xsk_map_node_alloc(struct xsk_map *map, struct xdp_sock **map_entry)

Type:struct xsk_map_node

Parameter:

TypeParameterName
struct xsk_map *map
struct xdp_sock **map_entry
29  node = 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).
30  If Not node Then Return ERR_PTR( - ENOMEM)
33  err = xsk_map_inc(map)
34  If err Then
35  kfree(node)
36  Return ERR_PTR(err)
39  map = map
40  map_entry = map_entry
41  Return node
Caller
NameDescribe
xsk_map_update_elem