Hi, Now I have an eBPF program which adds or updates elements in an eBPF map. Meanwhile, I have a user space application which reads and deletes elements in the aforementioned eBPF map. For a specific element in the eBPF map, if an update happens between the read and delete, I will lose some data. I'm using 4.9.30 upstream kernel, and I'm wondering if there is any mechanism in eBPF which can make the "read and delete" an atomic operation.
Thanks in advance, Paul