Lines Matching defs:sk

93 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \  argument
98 void SOCK_DEBUG(struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
404 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
410 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
418 static inline int sk_unhashed(const struct sock *sk) in sk_unhashed()
423 static inline int sk_hashed(const struct sock *sk) in sk_hashed()
438 static __inline__ void __sk_del_node(struct sock *sk) in __sk_del_node()
444 static __inline__ int __sk_del_node_init(struct sock *sk) in __sk_del_node_init()
460 static inline void sock_hold(struct sock *sk) in sock_hold()
468 static inline void __sock_put(struct sock *sk) in __sock_put()
473 static __inline__ int sk_del_node_init(struct sock *sk) in sk_del_node_init()
484 #define sk_del_node_init_rcu(sk) sk_del_node_init(sk) argument
486 static __inline__ int __sk_nulls_del_node_init_rcu(struct sock *sk) in __sk_nulls_del_node_init_rcu()
495 static __inline__ int sk_nulls_del_node_init_rcu(struct sock *sk) in sk_nulls_del_node_init_rcu()
507 static __inline__ void __sk_add_node(struct sock *sk, struct hlist_head *list) in __sk_add_node()
512 static __inline__ void sk_add_node(struct sock *sk, struct hlist_head *list) in sk_add_node()
518 static __inline__ void sk_add_node_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_rcu()
524 static __inline__ void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_rcu()
529 static __inline__ void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in sk_nulls_add_node_rcu()
535 static __inline__ void __sk_del_bind_node(struct sock *sk) in __sk_del_bind_node()
540 static __inline__ void sk_add_bind_node(struct sock *sk, in sk_add_bind_node()
600 static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) in sock_set_flag()
605 static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag) in sock_reset_flag()
610 static inline int sock_flag(struct sock *sk, enum sock_flags flag) in sock_flag()
615 static inline void sk_acceptq_removed(struct sock *sk) in sk_acceptq_removed()
620 static inline void sk_acceptq_added(struct sock *sk) in sk_acceptq_added()
625 static inline int sk_acceptq_is_full(struct sock *sk) in sk_acceptq_is_full()
633 static inline int sk_stream_min_wspace(struct sock *sk) in sk_stream_min_wspace()
638 static inline int sk_stream_wspace(struct sock *sk) in sk_stream_wspace()
645 static inline int sk_stream_memory_free(struct sock *sk) in sk_stream_memory_free()
651 static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb) in __sk_add_backlog()
670 static inline bool sk_rcvqueues_full(const struct sock *sk, const struct sk_buff *skb) in sk_rcvqueues_full()
678 static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb) in sk_add_backlog()
688 static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in sk_backlog_rcv()
693 static inline void sock_rps_record_flow(const struct sock *sk) in sock_rps_record_flow()
705 static inline void sock_rps_reset_flow(const struct sock *sk) in sock_rps_reset_flow()
717 static inline void sock_rps_save_rxhash(struct sock *sk, in sock_rps_save_rxhash()
728 static inline void sock_rps_reset_rxhash(struct sock *sk) in sock_rps_reset_rxhash()
902 static inline void sk_refcnt_debug_inc(struct sock *sk) in sk_refcnt_debug_inc()
907 static inline void sk_refcnt_debug_dec(struct sock *sk) in sk_refcnt_debug_dec()
914 inline void sk_refcnt_debug_release(const struct sock *sk) in sk_refcnt_debug_release()
921 #define sk_refcnt_debug_inc(sk) do { } while (0) argument
922 #define sk_refcnt_debug_dec(sk) do { } while (0) argument
923 #define sk_refcnt_debug_release(sk) do { } while (0) argument
944 static inline bool sk_has_memory_pressure(const struct sock *sk) in sk_has_memory_pressure()
949 static inline bool sk_under_memory_pressure(const struct sock *sk) in sk_under_memory_pressure()
960 static inline void sk_leave_memory_pressure(struct sock *sk) in sk_leave_memory_pressure()
981 static inline void sk_enter_memory_pressure(struct sock *sk) in sk_enter_memory_pressure()
997 static inline long sk_prot_mem_limits(const struct sock *sk, int index) in sk_prot_mem_limits()
1032 sk_memory_allocated(const struct sock *sk) in sk_memory_allocated()
1042 sk_memory_allocated_add(struct sock *sk, int amt, int *parent_status) in sk_memory_allocated_add()
1057 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub()
1067 static inline void sk_sockets_allocated_dec(struct sock *sk) in sk_sockets_allocated_dec()
1081 static inline void sk_sockets_allocated_inc(struct sock *sk) in sk_sockets_allocated_inc()
1096 sk_sockets_allocated_read_positive(struct sock *sk) in sk_sockets_allocated_read_positive()
1142 static inline void __sk_prot_rehash(struct sock *sk) in __sk_prot_rehash()
1172 struct sock *sk; member
1219 static inline int sk_has_account(struct sock *sk) in sk_has_account()
1225 static inline int sk_wmem_schedule(struct sock *sk, int size) in sk_wmem_schedule()
1233 static inline int sk_rmem_schedule(struct sock *sk, int size) in sk_rmem_schedule()
1241 static inline void sk_mem_reclaim(struct sock *sk) in sk_mem_reclaim()
1249 static inline void sk_mem_reclaim_partial(struct sock *sk) in sk_mem_reclaim_partial()
1257 static inline void sk_mem_charge(struct sock *sk, int size) in sk_mem_charge()
1264 static inline void sk_mem_uncharge(struct sock *sk, int size) in sk_mem_uncharge()
1271 static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in sk_wmem_free_skb()
1292 #define sock_owned_by_user(sk) ((sk)->sk_lock.owned) argument
1301 #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ argument
1315 static inline void lock_sock(struct sock *sk) in lock_sock()
1338 static inline void unlock_sock_fast(struct sock *sk, bool slow) in unlock_sock_fast()
1388 static inline void sock_update_classid(struct sock *sk) in sock_update_classid()
1468 static inline void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) in sk_filter_uncharge()
1476 static inline void sk_filter_charge(struct sock *sk, struct sk_filter *fp) in sk_filter_charge()
1508 static inline void sock_put(struct sock *sk) in sock_put()
1517 static inline void sk_tx_queue_set(struct sock *sk, int tx_queue) in sk_tx_queue_set()
1522 static inline void sk_tx_queue_clear(struct sock *sk) in sk_tx_queue_clear()
1527 static inline int sk_tx_queue_get(const struct sock *sk) in sk_tx_queue_get()
1532 static inline void sk_set_socket(struct sock *sk, struct socket *sock) in sk_set_socket()
1538 static inline wait_queue_head_t *sk_sleep(struct sock *sk) in sk_sleep()
1550 static inline void sock_orphan(struct sock *sk) in sock_orphan()
1559 static inline void sock_graft(struct sock *sk, struct socket *parent) in sock_graft()
1573 __sk_dst_get(struct sock *sk) in __sk_dst_get()
1580 sk_dst_get(struct sock *sk) in sk_dst_get()
1594 static inline void dst_negative_advice(struct sock *sk) in dst_negative_advice()
1609 __sk_dst_set(struct sock *sk, struct dst_entry *dst) in __sk_dst_set()
1624 sk_dst_set(struct sock *sk, struct dst_entry *dst) in sk_dst_set()
1632 __sk_dst_reset(struct sock *sk) in __sk_dst_reset()
1638 sk_dst_reset(struct sock *sk) in sk_dst_reset()
1649 static inline int sk_can_gso(const struct sock *sk) in sk_can_gso()
1656 static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags) in sk_nocaps_add()
1662 static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_do_copy_data_nocache()
1682 static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_add_data_nocache()
1695 static inline int skb_copy_to_page_nocache(struct sock *sk, char __user *from, in skb_copy_to_page_nocache()
1715 static inline int skb_copy_to_page(struct sock *sk, char __user *from, in skb_copy_to_page()
1744 static inline int sk_wmem_alloc_get(const struct sock *sk) in sk_wmem_alloc_get()
1755 static inline int sk_rmem_alloc_get(const struct sock *sk) in sk_rmem_alloc_get()
1766 static inline int sk_has_allocations(const struct sock *sk) in sk_has_allocations()
1848 static inline void skb_set_owner_w(struct sk_buff *skb, struct sock *sk) in skb_set_owner_w()
1861 static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in skb_set_owner_r()
1883 static inline int sock_error(struct sock *sk) in sock_error()
1892 static inline unsigned long sock_wspace(struct sock *sk) in sock_wspace()
1904 static inline void sk_wake_async(struct sock *sk, int how, int band) in sk_wake_async()
1917 static inline void sk_stream_moderate_sndbuf(struct sock *sk) in sk_stream_moderate_sndbuf()
1927 static inline struct page *sk_stream_alloc_page(struct sock *sk) in sk_stream_alloc_page()
1942 static inline int sock_writeable(const struct sock *sk) in sock_writeable()
1952 static inline long sock_rcvtimeo(const struct sock *sk, int noblock) in sock_rcvtimeo()
1957 static inline long sock_sndtimeo(const struct sock *sk, int noblock) in sock_sndtimeo()
1962 static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len) in sock_rcvlowat()
1981 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) in sock_recv_timestamp()
2014 static inline void sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, in sock_recv_ts_and_drops()
2050 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb, int copied_early) in sk_eat_skb()
2059 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb, int copied_early) in sk_eat_skb()
2067 struct net *sock_net(const struct sock *sk) in sock_net()
2073 void sock_net_set(struct sock *sk, struct net *net) in sock_net_set()
2084 static inline void sk_change_net(struct sock *sk, struct net *net) in sk_change_net()
2093 struct sock *sk = skb->sk; in skb_steal_sock() local