diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-10-29 16:58:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-03 06:48:39 +0300 |
commit | aa79781b65b9cf79807ade78f2703f5e9402c336 (patch) | |
tree | 7b2eaa26b26f7c59283b87b6c44a5855dd249273 /include/linux/bpf.h | |
parent | 1d6119baf0610f813eb9d9580eb4fd16de5b4ceb (diff) | |
download | linux-aa79781b65b9cf79807ade78f2703f5e9402c336.tar.xz |
bpf: abstract anon_inode_getfd invocations
Since we're going to use anon_inode_getfd() invocations in more than just
the current places, make a helper function for both, so that we only need
to pass a map/prog pointer to the helper itself in order to get a fd. The
new helpers are called bpf_map_new_fd() and bpf_prog_new_fd().
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions