diff options
Diffstat (limited to 'include/net/af_unix.h')
| -rw-r--r-- | include/net/af_unix.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 1614d78c60ed..20725e213aee 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h | |||
| @@ -30,7 +30,7 @@ struct unix_skb_parms { | |||
| 30 | #endif | 30 | #endif |
| 31 | }; | 31 | }; |
| 32 | 32 | ||
| 33 | #define UNIXCB(skb) (*(struct unix_skb_parms*)&((skb)->cb)) | 33 | #define UNIXCB(skb) (*(struct unix_skb_parms *)&((skb)->cb)) |
| 34 | #define UNIXCREDS(skb) (&UNIXCB((skb)).creds) | 34 | #define UNIXCREDS(skb) (&UNIXCB((skb)).creds) |
| 35 | #define UNIXSID(skb) (&UNIXCB((skb)).secid) | 35 | #define UNIXSID(skb) (&UNIXCB((skb)).secid) |
| 36 | 36 | ||
| @@ -45,21 +45,23 @@ struct unix_skb_parms { | |||
| 45 | struct unix_sock { | 45 | struct unix_sock { |
| 46 | /* WARNING: sk has to be the first member */ | 46 | /* WARNING: sk has to be the first member */ |
| 47 | struct sock sk; | 47 | struct sock sk; |
| 48 | struct unix_address *addr; | 48 | struct unix_address *addr; |
| 49 | struct dentry *dentry; | 49 | struct dentry *dentry; |
| 50 | struct vfsmount *mnt; | 50 | struct vfsmount *mnt; |
| 51 | struct mutex readlock; | 51 | struct mutex readlock; |
| 52 | struct sock *peer; | 52 | struct sock *peer; |
| 53 | struct sock *other; | 53 | struct sock *other; |
| 54 | struct list_head link; | 54 | struct list_head link; |
| 55 | atomic_long_t inflight; | 55 | atomic_long_t inflight; |
| 56 | spinlock_t lock; | 56 | spinlock_t lock; |
| 57 | unsigned int gc_candidate : 1; | 57 | unsigned int gc_candidate : 1; |
| 58 | unsigned int gc_maybe_cycle : 1; | 58 | unsigned int gc_maybe_cycle : 1; |
| 59 | wait_queue_head_t peer_wait; | 59 | struct socket_wq peer_wq; |
| 60 | }; | 60 | }; |
| 61 | #define unix_sk(__sk) ((struct unix_sock *)__sk) | 61 | #define unix_sk(__sk) ((struct unix_sock *)__sk) |
| 62 | 62 | ||
| 63 | #define peer_wait peer_wq.wait | ||
| 64 | |||
| 63 | #ifdef CONFIG_SYSCTL | 65 | #ifdef CONFIG_SYSCTL |
| 64 | extern int unix_sysctl_register(struct net *net); | 66 | extern int unix_sysctl_register(struct net *net); |
| 65 | extern void unix_sysctl_unregister(struct net *net); | 67 | extern void unix_sysctl_unregister(struct net *net); |
