Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_cgroup_storage_assign

Proto:int bpf_cgroup_storage_assign(struct bpf_prog_aux *aux, struct bpf_map *_map)

Type:int

Parameter:

TypeParameterName
struct bpf_prog_aux *aux
struct bpf_map *_map
425  stype = cgroup_storage_type(_map)
426  map = map_to_storage(_map)
427  ret = -EBUSY
429  spin_lock_bh( & lock)
431  If aux && aux != aux Then Go to unlock
433  If cgroup_storage[stype] && cgroup_storage[stype] != _map Then Go to unlock
437  aux = aux
438  cgroup_storage[stype] = _map
439  ret = 0
440  unlock :
441  spin_unlock_bh( & lock)
443  Return ret