af_unix.h (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | af_unix.h (20380731bc2897f2952ae055420972ded4cd786e) |
---|---|
1#ifndef __LINUX_NET_AFUNIX_H 2#define __LINUX_NET_AFUNIX_H | 1#ifndef __LINUX_NET_AFUNIX_H 2#define __LINUX_NET_AFUNIX_H |
3 4#include <linux/config.h> 5#include <linux/socket.h> 6#include <linux/un.h> 7#include <net/sock.h> 8 |
|
3extern void unix_inflight(struct file *fp); 4extern void unix_notinflight(struct file *fp); 5extern void unix_gc(void); 6 7#define UNIX_HASH_SIZE 256 8 9extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; 10extern rwlock_t unix_table_lock; --- 58 unchanged lines hidden (view full) --- 69 struct sock *peer; 70 struct sock *other; 71 struct sock *gc_tree; 72 atomic_t inflight; 73 rwlock_t lock; 74 wait_queue_head_t peer_wait; 75}; 76#define unix_sk(__sk) ((struct unix_sock *)__sk) | 9extern void unix_inflight(struct file *fp); 10extern void unix_notinflight(struct file *fp); 11extern void unix_gc(void); 12 13#define UNIX_HASH_SIZE 256 14 15extern struct hlist_head unix_socket_table[UNIX_HASH_SIZE + 1]; 16extern rwlock_t unix_table_lock; --- 58 unchanged lines hidden (view full) --- 75 struct sock *peer; 76 struct sock *other; 77 struct sock *gc_tree; 78 atomic_t inflight; 79 rwlock_t lock; 80 wait_queue_head_t peer_wait; 81}; 82#define unix_sk(__sk) ((struct unix_sock *)__sk) |
83 84#ifdef CONFIG_SYSCTL 85extern int sysctl_unix_max_dgram_qlen; 86extern void unix_sysctl_register(void); 87extern void unix_sysctl_unregister(void); 88#else 89static inline void unix_sysctl_register(void) {} 90static inline void unix_sysctl_unregister(void) {} |
|
77#endif 78#endif | 91#endif 92#endif |
93#endif |
|