函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xsk_map_try_sock_delete

函数原型:void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, struct xdp_sock **map_entry)

返回类型:void

参数:

类型参数名称
struct xsk_map *map
struct xdp_sock *xs
struct xdp_sock **map_entry
259  spin_lock_bh( & Synchronize map updates )
260  如果READ_ONCE( * map_entry)恒等于xs
261  WRITE_ONCE( * map_entry, NULL)
262  xsk_map_sock_delete(xs, map_entry)
264  spin_unlock_bh( & Synchronize map updates )