mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +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>
11 lines
263 B
C
11 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
|