|
#define | SOCK_DEBUGGING |
|
#define | SOCK_DEBUG(sk, msg...) |
|
#define | sk_node __sk_common.skc_node |
|
#define | sk_nulls_node __sk_common.skc_nulls_node |
|
#define | sk_refcnt __sk_common.skc_refcnt |
|
#define | sk_tx_queue_mapping __sk_common.skc_tx_queue_mapping |
|
#define | sk_dontcopy_begin __sk_common.skc_dontcopy_begin |
|
#define | sk_dontcopy_end __sk_common.skc_dontcopy_end |
|
#define | sk_hash __sk_common.skc_hash |
|
#define | sk_family __sk_common.skc_family |
|
#define | sk_state __sk_common.skc_state |
|
#define | sk_reuse __sk_common.skc_reuse |
|
#define | sk_bound_dev_if __sk_common.skc_bound_dev_if |
|
#define | sk_bind_node __sk_common.skc_bind_node |
|
#define | sk_prot __sk_common.skc_prot |
|
#define | sk_net __sk_common.skc_net |
|
#define | sk_rmem_alloc sk_backlog.rmem_alloc |
|
#define | SK_NO_REUSE 0 |
|
#define | SK_CAN_REUSE 1 |
|
#define | SK_FORCE_REUSE 2 |
|
#define | sk_del_node_init_rcu(sk) sk_del_node_init(sk) |
|
#define | sk_for_each(__sk, node, list) hlist_for_each_entry(__sk, node, list, sk_node) |
|
#define | sk_for_each_rcu(__sk, node, list) hlist_for_each_entry_rcu(__sk, node, list, sk_node) |
|
#define | sk_nulls_for_each(__sk, node, list) hlist_nulls_for_each_entry(__sk, node, list, sk_nulls_node) |
|
#define | sk_nulls_for_each_rcu(__sk, node, list) hlist_nulls_for_each_entry_rcu(__sk, node, list, sk_nulls_node) |
|
#define | sk_for_each_from(__sk, node) |
|
#define | sk_nulls_for_each_from(__sk, node) |
|
#define | sk_for_each_safe(__sk, node, tmp, list) hlist_for_each_entry_safe(__sk, node, tmp, list, sk_node) |
|
#define | sk_for_each_bound(__sk, node, list) hlist_for_each_entry(__sk, node, list, sk_bind_node) |
|
#define | sk_wait_event(__sk, __timeo, __condition) |
|
#define | sk_refcnt_debug_inc(sk) do { } while (0) |
|
#define | sk_refcnt_debug_dec(sk) do { } while (0) |
|
#define | sk_refcnt_debug_release(sk) do { } while (0) |
|
#define | mem_cgroup_sockets_enabled 0 |
|
#define | SOCK_DESTROY_TIME (10*HZ) |
|
#define | PROT_SOCK 1024 |
|
#define | SHUTDOWN_MASK 3 |
|
#define | RCV_SHUTDOWN 1 |
|
#define | SEND_SHUTDOWN 2 |
|
#define | SOCK_SNDBUF_LOCK 1 |
|
#define | SOCK_RCVBUF_LOCK 2 |
|
#define | SOCK_BINDADDR_LOCK 4 |
|
#define | SOCK_BINDPORT_LOCK 8 |
|
#define | SK_MEM_QUANTUM ((int)PAGE_SIZE) |
|
#define | SK_MEM_QUANTUM_SHIFT ilog2(SK_MEM_QUANTUM) |
|
#define | SK_MEM_SEND 0 |
|
#define | SK_MEM_RECV 1 |
|
#define | sock_owned_by_user(sk) ((sk)->sk_lock.owned) |
|
#define | sock_lock_init_class_and_name(sk, sname, skey, name, key) |
|
#define | bh_lock_sock(__sk) spin_lock(&((__sk)->sk_lock.slock)) |
|
#define | bh_lock_sock_nested(__sk) |
|
#define | bh_unlock_sock(__sk) spin_unlock(&((__sk)->sk_lock.slock)) |
|
#define | SOCK_MIN_SNDBUF 2048 |
|
#define | SOCK_MIN_RCVBUF (2048 + sizeof(struct sk_buff)) |
|
#define | FLAGS_TS_OR_DROPS |
|
#define | NETDEBUG(fmt, args...) do { if (net_msg_warn) printk(fmt,##args); } while (0) |
|
#define | LIMIT_NETDEBUG(fmt, args...) do { if (net_msg_warn && net_ratelimit()) printk(fmt,##args); } while(0) |
|
|
void | sk_stream_write_space (struct sock *sk) |
|
int | __sk_backlog_rcv (struct sock *sk, struct sk_buff *skb) |
|
int | sk_stream_wait_connect (struct sock *sk, long *timeo_p) |
|
int | sk_stream_wait_memory (struct sock *sk, long *timeo_p) |
|
void | sk_stream_wait_close (struct sock *sk, long timeo_p) |
|
int | sk_stream_error (struct sock *sk, int flags, int err) |
|
void | sk_stream_kill_queues (struct sock *sk) |
|
void | sk_set_memalloc (struct sock *sk) |
|
void | sk_clear_memalloc (struct sock *sk) |
|
int | sk_wait_data (struct sock *sk, long *timeo) |
|
int | proto_register (struct proto *prot, int alloc_slab) |
|
void | proto_unregister (struct proto *prot) |
|
void | sk_prot_clear_portaddr_nulls (struct sock *sk, int size) |
|
int | __sk_mem_schedule (struct sock *sk, int size, int kind) |
|
void | __sk_mem_reclaim (struct sock *sk) |
|
void | lock_sock_nested (struct sock *sk, int subclass) |
|
void | release_sock (struct sock *sk) |
|
bool | lock_sock_fast (struct sock *sk) |
|
struct sock * | sk_alloc (struct net *net, int family, gfp_t priority, struct proto *prot) |
|
void | sk_free (struct sock *sk) |
|
void | sk_release_kernel (struct sock *sk) |
|
struct sock * | sk_clone_lock (const struct sock *sk, const gfp_t priority) |
|
struct sk_buff * | sock_wmalloc (struct sock *sk, unsigned long size, int force, gfp_t priority) |
|
struct sk_buff * | sock_rmalloc (struct sock *sk, unsigned long size, int force, gfp_t priority) |
|
void | sock_wfree (struct sk_buff *skb) |
|
void | sock_rfree (struct sk_buff *skb) |
|
void | sock_edemux (struct sk_buff *skb) |
|
int | sock_setsockopt (struct socket *sock, int level, int op, char __user *optval, unsigned int optlen) |
|
int | sock_getsockopt (struct socket *sock, int level, int op, char __user *optval, int __user *optlen) |
|
struct sk_buff * | sock_alloc_send_skb (struct sock *sk, unsigned long size, int noblock, int *errcode) |
|
struct sk_buff * | sock_alloc_send_pskb (struct sock *sk, unsigned long header_len, unsigned long data_len, int noblock, int *errcode) |
|
void * | sock_kmalloc (struct sock *sk, int size, gfp_t priority) |
|
void | sock_kfree_s (struct sock *sk, void *mem, int size) |
|
void | sk_send_sigurg (struct sock *sk) |
|
int | sock_no_bind (struct socket *, struct sockaddr *, int) |
|
int | sock_no_connect (struct socket *, struct sockaddr *, int, int) |
|
int | sock_no_socketpair (struct socket *, struct socket *) |
|
int | sock_no_accept (struct socket *, struct socket *, int) |
|
int | sock_no_getname (struct socket *, struct sockaddr *, int *, int) |
|
unsigned int | sock_no_poll (struct file *, struct socket *, struct poll_table_struct *) |
|
int | sock_no_ioctl (struct socket *, unsigned int, unsigned long) |
|
int | sock_no_listen (struct socket *, int) |
|
int | sock_no_shutdown (struct socket *, int) |
|
int | sock_no_getsockopt (struct socket *, int, int, char __user *, int __user *) |
|
int | sock_no_setsockopt (struct socket *, int, int, char __user *, unsigned int) |
|
int | sock_no_sendmsg (struct kiocb *, struct socket *, struct msghdr *, size_t) |
|
int | sock_no_recvmsg (struct kiocb *, struct socket *, struct msghdr *, size_t, int) |
|
int | sock_no_mmap (struct file *file, struct socket *sock, struct vm_area_struct *vma) |
|
ssize_t | sock_no_sendpage (struct socket *sock, struct page *page, int offset, size_t size, int flags) |
|
int | sock_common_getsockopt (struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) |
|
int | sock_common_recvmsg (struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size, int flags) |
|
int | sock_common_setsockopt (struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen) |
|
int | compat_sock_common_getsockopt (struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) |
|
int | compat_sock_common_setsockopt (struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen) |
|
void | sk_common_release (struct sock *sk) |
|
void | sock_init_data (struct socket *sock, struct sock *sk) |
|
void | sk_filter_release_rcu (struct rcu_head *rcu) |
|
int | sk_receive_skb (struct sock *sk, struct sk_buff *skb, const int nested) |
|
kuid_t | sock_i_uid (struct sock *sk) |
|
unsigned long | sock_i_ino (struct sock *sk) |
|
void | sk_reset_txq (struct sock *sk) |
|
struct dst_entry * | __sk_dst_check (struct sock *sk, u32 cookie) |
|
struct dst_entry * | sk_dst_check (struct sock *sk, u32 cookie) |
|
void | sk_setup_caps (struct sock *sk, struct dst_entry *dst) |
|
void | sk_reset_timer (struct sock *sk, struct timer_list *timer, unsigned long expires) |
|
void | sk_stop_timer (struct sock *sk, struct timer_list *timer) |
|
int | sock_queue_rcv_skb (struct sock *sk, struct sk_buff *skb) |
|
int | sock_queue_err_skb (struct sock *sk, struct sk_buff *skb) |
|
struct sk_buff * | sk_stream_alloc_skb (struct sock *sk, int size, gfp_t gfp) |
|
bool | sk_page_frag_refill (struct sock *sk, struct page_frag *pfrag) |
|
void | __sock_recv_timestamp (struct msghdr *msg, struct sock *sk, struct sk_buff *skb) |
|
void | __sock_recv_wifi_status (struct msghdr *msg, struct sock *sk, struct sk_buff *skb) |
|
void | __sock_recv_ts_and_drops (struct msghdr *msg, struct sock *sk, struct sk_buff *skb) |
|
int | sock_tx_timestamp (struct sock *sk, __u8 *tx_flags) |
|
void | sock_enable_timestamp (struct sock *sk, int flag) |
|
int | sock_get_timestamp (struct sock *, struct timeval __user *) |
|
int | sock_get_timestampns (struct sock *, struct timespec __user *) |
|
lock_sock_fast - fast version of lock_sock : socket
This version should be used for very small section, where process wont block return false if fast path is taken sk_lock.slock locked, owned = 0, BH disabled return true if slow path is taken sk_lock.slock unlocked, owned = 1, BH enabled
Definition at line 2266 of file sock.c.