summaryrefslogtreecommitdiffstats
path: root/include/net/af_unix.h
diff options
context:
space:
mode:
authorPavel Emelyanov2011-12-15 03:44:03 +0100
committerDavid S. Miller2011-12-16 19:48:27 +0100
commitfa7ff56f75add89bbedaf2dfcfa8f6661e8e8b3a (patch)
tree60e3b442d75f4559c5447392d524c49ccc81d28e /include/net/af_unix.h
parentsock_diag: Generalize requests cookies managements (diff)
downloadkernel-qcow2-linux-fa7ff56f75add89bbedaf2dfcfa8f6661e8e8b3a.tar.gz
kernel-qcow2-linux-fa7ff56f75add89bbedaf2dfcfa8f6661e8e8b3a.tar.xz
kernel-qcow2-linux-fa7ff56f75add89bbedaf2dfcfa8f6661e8e8b3a.zip
af_unix: Export stuff required for diag module
Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r--include/net/af_unix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index 91ab5b01678a..63b17816e0ba 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -11,10 +11,13 @@ extern void unix_notinflight(struct file *fp);
extern void unix_gc(void);
extern void wait_for_unix_gc(void);
extern struct sock *unix_get_socket(struct file *filp);
+extern struct sock *unix_peer_get(struct sock *);
#define UNIX_HASH_SIZE 256
extern unsigned int unix_tot_inflight;
+extern spinlock_t unix_table_lock;
+extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1];
struct unix_address {
atomic_t refcnt;