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:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup_storage_get_next_key

Proto:static int cgroup_storage_get_next_key(struct bpf_map *_map, void *_key, void *_next_key)

Type:int

Parameter:

TypeParameterName
struct bpf_map *_map
void *_key
void *_next_key
238  map = map_to_storage(_map)
239  key = _key
240  next = _next_key
243  spin_lock_bh( & lock)
245  If list_empty - tests whether a list is empty*@head: the list to test. Then Go to enoent
248  If key Then
249  storage = cgroup_storage_lookup(map, key, true)
250  If Not storage Then Go to enoent
253  storage = list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(storage, list)
254  If Not storage Then Go to enoent
256  Else
257  storage = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & list, structbpf_cgroup_storage, list)
261  spin_unlock_bh( & lock)
262  program attach type = program attach type
263  cgroup inode id = cgroup inode id
264  Return 0
266  enoent :
267  spin_unlock_bh( & lock)
268  Return -ENOENT