#ifndef __LINUX_NET_AFUNIX_H
#define __LINUX_NET_AFUNIX_H
-
-#include <linux/vs_base.h>
-
extern void unix_inflight(struct file *fp);
extern void unix_notinflight(struct file *fp);
extern void unix_gc(void);
#define forall_unix_sockets(i, s) \
for (s = first_unix_socket(&(i)); s; s = next_unix_socket(&(i),(s)))
-struct unix_address
-{
+struct unix_address {
atomic_t refcnt;
int len;
unsigned hash;
struct sockaddr_un name[0];
};
-struct unix_skb_parms
-{
+struct unix_skb_parms {
struct ucred creds; /* Skb credentials */
struct scm_fp_list *fp; /* Passed files */
};
struct dentry *dentry;
struct vfsmount *mnt;
struct semaphore readsem;
+ struct sock *peer;
struct sock *other;
struct sock *gc_tree;
atomic_t inflight;