aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/fds_example.c
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2015-10-29 13:58:06 +0000
committerDavid S. Miller <[email protected]>2015-11-03 03:48:39 +0000
commitaa79781b65b9cf79807ade78f2703f5e9402c336 (patch)
tree7b2eaa26b26f7c59283b87b6c44a5855dd249273 /samples/bpf/fds_example.c
parentnet: fix percpu memory leaks (diff)
downloadkernel-aa79781b65b9cf79807ade78f2703f5e9402c336.tar.gz
kernel-aa79781b65b9cf79807ade78f2703f5e9402c336.zip
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 <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'samples/bpf/fds_example.c')
0 files changed, 0 insertions, 0 deletions