Files
kernel_arpi/include/linux
Andrii Nakryiko a3b80e1078 bpf: Allocate ID for bpf_link
Generate ID for each bpf_link using IDR, similarly to bpf_map and bpf_prog.
bpf_link creation, initialization, attachment, and exposing to user-space
through FD and ID is a complicated multi-step process, abstract it away
through bpf_link_primer and bpf_link_prime(), bpf_link_settle(), and
bpf_link_cleanup() internal API. They guarantee that until bpf_link is
properly attached, user-space won't be able to access partially-initialized
bpf_link either from FD or ID. All this allows to simplify bpf_link attachment
and error handling code.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200429001614.1544-3-andriin@fb.com
2020-04-28 17:27:08 -07:00
..
2020-03-31 21:29:04 +02:00
2020-03-30 01:34:00 +02:00
2020-04-28 17:27:08 -07:00
2020-04-10 15:36:21 -07:00
2020-03-27 20:19:24 -03:00
2020-04-15 11:48:21 +02:00
2020-04-10 15:36:21 -07:00
2020-04-07 10:43:38 -07:00
2020-04-02 09:35:27 -07:00
2020-04-07 10:43:38 -07:00
2020-04-24 16:47:51 -07:00
2020-04-07 10:43:42 -07:00
2020-04-17 06:05:30 -04:00
2020-04-01 12:06:26 -04:00
2020-04-17 06:05:30 -04:00