函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called from syscall only

函数原型:static int reuseport_array_delete_elem(struct bpf_map *map, void *key)

返回类型:int

参数:

类型参数名称
struct bpf_map *map
void *key
63  array等于reuseport_array(map)
64  index等于key
68  如果index大于等于max_entries则返回:负E2BIG
71  如果非cu_access_pointer() - fetch RCU pointer with no dereferencing*@p: The pointer to read* Return the value of the specified RCU-protected pointer, but omit the* lockdep checks for being in an RCU read-side critical section(ptrs[index])则返回:负ENOENT
74  spin_lock_bh( & reuseport_lock)
76  sk等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(ptrs[index], lockdep_is_held( & reuseport_lock))
78  如果sk
79  write_lock_bh( & sk_callback_lock)
80  WRITE_ONCE(sk_user_data, NULL)
81  RCU_INIT_POINTER() - initialize an RCU protected pointer*@p: The pointer to be initialized.*@v: The value to initialized the pointer to.* Initialize an RCU-protected pointer in special cases where readers(ptrs[index], NULL)
82  write_unlock_bh( & sk_callback_lock)
83  err等于0
84  否则
85  err等于负ENOENT
88  spin_unlock_bh( & reuseport_lock)
90  返回:err