Files
linux/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-01-23 00:35:50 +01:00
2020-03-09 11:12:19 +01:00
2020-02-27 14:58:01 +01:00
2020-02-17 13:37:00 +01:00
2020-01-27 11:09:31 +01:00
2020-03-06 11:06:15 +01:00
2020-03-27 20:19:24 -03:00
2020-04-15 11:48:21 +02:00
2020-03-21 16:00:24 +01:00
2020-01-31 17:33:54 +00:00
2020-02-20 21:17:24 +01:00
2020-04-10 15:36:21 -07:00
2020-03-06 11:56:59 +01:00
2020-04-07 10:43:38 -07:00
2020-03-21 16:00:24 +01: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-03-21 16:00:24 +01:00
2020-02-21 10:31:18 +01:00
2020-04-07 10:43:42 -07:00
2020-03-21 16:00:24 +01:00
2020-03-02 14:04:31 -07:00
2020-02-04 03:05:26 +00:00
2020-03-23 13:41:55 +01:00
2020-02-21 11:22:15 -08:00
2020-03-23 17:01:47 +01: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