函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\local_storage.c Create Date:2022-07-27 14:31:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cgroup_storage_get_next_key

函数原型:static int cgroup_storage_get_next_key(struct bpf_map *_map, void *_key, void *_next_key)

返回类型:int

参数:

类型参数名称
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  如果链表为空则转到:enoent
248  如果key
249  storage等于cgroup_storage_lookup(map, key, true)
250  如果非storage则转到: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  如果非storage则转到:enoent
256  否则
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  返回:0
266  enoent :
267  spin_unlock_bh( & lock)
268  返回:负ENOENT