Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xsk_map_try_sock_delete

Proto:void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs, struct xdp_sock **map_entry)

Type:void

Parameter:

TypeParameterName
struct xsk_map *map
struct xdp_sock *xs
struct xdp_sock **map_entry
259  spin_lock_bh( & Synchronize map updates )
260  If READ_ONCE( * map_entry) == xs Then
261  WRITE_ONCE( * map_entry, NULL)
262  xsk_map_sock_delete(xs, map_entry)
264  spin_unlock_bh( & Synchronize map updates )