Go to the documentation of this file. 1 #ifndef __LINUX_NET_AFUNIX_H
2 #define __LINUX_NET_AFUNIX_H
4 #include <linux/socket.h>
16 #define UNIX_HASH_SIZE 256
17 #define UNIX_HASH_BITS 8
34 #ifdef CONFIG_SECURITY_NETWORK
39 #define UNIXCB(skb) (*(struct unix_skb_parms *)&((skb)->cb))
40 #define UNIXSID(skb) (&UNIXCB((skb)).secid)
42 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock)
43 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock)
44 #define unix_state_lock_nested(s) \
45 spin_lock_nested(&unix_sk(s)->lock, \
65 #define unix_sk(__sk) ((struct unix_sock *)__sk)
67 #define peer_wait peer_wq.wait