diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-10-29 14:58:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-02 22:48:39 -0500 |
commit | aa79781b65b9cf79807ade78f2703f5e9402c336 (patch) | |
tree | 7b2eaa26b26f7c59283b87b6c44a5855dd249273 /drivers/scsi/sun3x_esp.c | |
parent | 1d6119baf0610f813eb9d9580eb4fd16de5b4ceb (diff) |
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 'drivers/scsi/sun3x_esp.c')
0 files changed, 0 insertions, 0 deletions