The previous patch implemented a bpf queue/stack maps that provided the peek/pop/push functions. There is not a direct relationship between those functions and the current maps syscalls, hence a new MAP_LOOKUP_AND_DELETE_ELEM syscall is added, this is mapped to the pop operation in the queue/stack maps and it is still to implement in other kind of maps.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -103,6 +103,7 @@ enum bpf_cmd { · 102 unmodified lines | ||
| 103 | 103 | BPF_BTF_LOAD, |
| 104 | 104 | BPF_BTF_GET_FD_BY_ID, |
| 105 | 105 | BPF_TASK_FD_QUERY, |
| 106 | + BPF_MAP_LOOKUP_AND_DELETE_ELEM, | |
| 106 | 107 | }; |
| 107 | 108 | |
| 108 | 109 | enum bpf_map_type { |