History

bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall

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.

Mauricio Vasquez B committed 8 years ago

Commit bd513cd1 parent f1a2e442 files · +67 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -103,6 +103,7 @@ enum bpf_cmd { · 102 unmodified lines
103 BPF_BTF_LOAD,103 BPF_BTF_LOAD,
104 BPF_BTF_GET_FD_BY_ID,104 BPF_BTF_GET_FD_BY_ID,
105 BPF_TASK_FD_QUERY,105 BPF_TASK_FD_QUERY,
106 BPF_MAP_LOOKUP_AND_DELETE_ELEM,
106};107};
107 108
108enum bpf_map_type {109enum bpf_map_type {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t