diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-02-08 09:01:44 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-28 08:24:23 -0700 |
commit | f4e65870e5cede5ca1ec0006b6c9803994e5f7b8 (patch) | |
tree | b8fb35e27f64bd350bb4166a2708d7f147719fa1 /include/net/af_unix.h | |
parent | edafccee56ff31678a091ddb7219aba9b28bc3cb (diff) | |
download | lwn-f4e65870e5cede5ca1ec0006b6c9803994e5f7b8.tar.gz lwn-f4e65870e5cede5ca1ec0006b6c9803994e5f7b8.zip |
net: split out functions related to registering inflight socket files
We need this functionality for the io_uring file registration, but
we cannot rely on it since CONFIG_UNIX can be modular. Move the helpers
to a separate file, that's always builtin to the kernel if CONFIG_UNIX is
m/y.
No functional changes in this patch, just moving code around.
Reviewed-by: Hannes Reinecke <hare@suse.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r-- | include/net/af_unix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index ddbba838d048..3426d6dacc45 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h @@ -10,6 +10,7 @@ void unix_inflight(struct user_struct *user, struct file *fp); void unix_notinflight(struct user_struct *user, struct file *fp); +void unix_destruct_scm(struct sk_buff *skb); void unix_gc(void); void wait_for_unix_gc(void); struct sock *unix_get_socket(struct file *filp); |