Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:After xchg pointer to bpf_cpu_map_entry, use the call_rcu() to* ensure any driver rcu critical sections have completed, but this* does not guarantee a flush has happened yet. Because driver side* rcu_read_lock/unlock only protects the running XDP program

Proto:static void __cpu_map_entry_replace(struct bpf_cpu_map *cmap, u32 key_cpu, struct bpf_cpu_map_entry *rcpu)

Type:void

Parameter:

TypeParameterName
struct bpf_cpu_map *cmap
u32key_cpu
struct bpf_cpu_map_entry *rcpu
447  old_rcpu = xchg( & Below members specific for map type [key_cpu], rcpu)
448  If old_rcpu Then
449  all_rcu() - Queue an RCU callback for invocation after a grace period
450  INIT_WORK( & kthread_stop_wq, alled from workqueue, to workaround syscall using preempt_disable )
451  schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
Caller
NameDescribe
cpu_map_delete_elem
cpu_map_update_elem
cpu_map_free