mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 00:17:44 +00:00
f4e65870e5
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>
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
|