mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
db44d02063
commit f4e65870e5
upstream.
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>
[ backported to older kernels to get access to unix_gc_lock - gregkh ]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 lines
263 B
C
10 lines
263 B
C
#ifndef NET_UNIX_SCM_H
|
|
#define NET_UNIX_SCM_H
|
|
|
|
extern struct list_head gc_inflight_list;
|
|
extern spinlock_t unix_gc_lock;
|
|
|
|
int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb);
|
|
void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb);
|
|
|
|
#endif
|