Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called from syscall or from eBPF program

Proto:static int stack_map_delete_elem(struct bpf_map *map, void *key)

Type:int

Parameter:

TypeParameterName
struct bpf_map *map
void *key
581  smap = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_stack_map, map)
583  id = key
585  If Value for the false possibility is greater at compile time(id >= n_buckets) Then Return -E2BIG
588  old_bucket = xchg( & buckets[id], NULL)
589  If old_bucket Then
590  pcpu_freelist_push( & freelist, & fnode)
591  Return 0
592  Else
593  Return -ENOENT