Lines Matching defs:sk
97 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
102 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
444 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
446 #define rcu_dereference_sk_user_data(sk) rcu_dereference(__sk_user_data((sk))) argument
447 #define rcu_assign_sk_user_data(sk, ptr) rcu_assign_pointer(__sk_user_data((sk)), ptr) argument
460 static inline int sk_peek_offset(struct sock *sk, int flags) in sk_peek_offset()
468 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
478 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
512 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
518 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
526 static inline bool sk_unhashed(const struct sock *sk) in sk_unhashed()
531 static inline bool sk_hashed(const struct sock *sk) in sk_hashed()
546 static inline void __sk_del_node(struct sock *sk) in __sk_del_node()
552 static inline bool __sk_del_node_init(struct sock *sk) in __sk_del_node_init()
568 static inline void sock_hold(struct sock *sk) in sock_hold()
576 static inline void __sock_put(struct sock *sk) in __sock_put()
581 static inline bool sk_del_node_init(struct sock *sk) in sk_del_node_init()
592 #define sk_del_node_init_rcu(sk) sk_del_node_init(sk) argument
594 static inline bool __sk_nulls_del_node_init_rcu(struct sock *sk) in __sk_nulls_del_node_init_rcu()
603 static inline bool sk_nulls_del_node_init_rcu(struct sock *sk) in sk_nulls_del_node_init_rcu()
615 static inline void __sk_add_node(struct sock *sk, struct hlist_head *list) in __sk_add_node()
620 static inline void sk_add_node(struct sock *sk, struct hlist_head *list) in sk_add_node()
626 static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_rcu()
632 static inline void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_rcu()
637 static inline void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in sk_nulls_add_node_rcu()
643 static inline void __sk_del_bind_node(struct sock *sk) in __sk_del_bind_node()
648 static inline void sk_add_bind_node(struct sock *sk, in sk_add_bind_node()
686 static inline struct user_namespace *sk_user_ns(struct sock *sk) in sk_user_ns()
733 static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) in sock_set_flag()
738 static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag) in sock_reset_flag()
743 static inline bool sock_flag(const struct sock *sk, enum sock_flags flag) in sock_flag()
763 static inline gfp_t sk_gfp_atomic(struct sock *sk, gfp_t gfp_mask) in sk_gfp_atomic()
768 static inline void sk_acceptq_removed(struct sock *sk) in sk_acceptq_removed()
773 static inline void sk_acceptq_added(struct sock *sk) in sk_acceptq_added()
778 static inline bool sk_acceptq_is_full(const struct sock *sk) in sk_acceptq_is_full()
786 static inline int sk_stream_min_wspace(const struct sock *sk) in sk_stream_min_wspace()
791 static inline int sk_stream_wspace(const struct sock *sk) in sk_stream_wspace()
799 static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb) in __sk_add_backlog()
818 static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit) in sk_rcvqueues_full()
826 static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, in sk_add_backlog()
847 static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in sk_backlog_rcv()
855 static inline void sk_incoming_cpu_update(struct sock *sk) in sk_incoming_cpu_update()
872 static inline void sock_rps_record_flow(const struct sock *sk) in sock_rps_record_flow()
879 static inline void sock_rps_save_rxhash(struct sock *sk, in sock_rps_save_rxhash()
888 static inline void sock_rps_reset_rxhash(struct sock *sk) in sock_rps_reset_rxhash()
928 static inline void sk_prot_clear_nulls(struct sock *sk, int size) in sk_prot_clear_nulls()
1092 static inline void sk_refcnt_debug_inc(struct sock *sk) in sk_refcnt_debug_inc()
1097 static inline void sk_refcnt_debug_dec(struct sock *sk) in sk_refcnt_debug_dec()
1104 static inline void sk_refcnt_debug_release(const struct sock *sk) in sk_refcnt_debug_release()
1111 #define sk_refcnt_debug_inc(sk) do { } while (0) argument
1112 #define sk_refcnt_debug_dec(sk) do { } while (0) argument
1113 #define sk_refcnt_debug_release(sk) do { } while (0) argument
1133 static inline bool sk_stream_memory_free(const struct sock *sk) in sk_stream_memory_free()
1142 static inline bool sk_stream_is_writeable(const struct sock *sk) in sk_stream_is_writeable()
1149 static inline bool sk_has_memory_pressure(const struct sock *sk) in sk_has_memory_pressure()
1154 static inline bool sk_under_memory_pressure(const struct sock *sk) in sk_under_memory_pressure()
1165 static inline void sk_leave_memory_pressure(struct sock *sk) in sk_leave_memory_pressure()
1185 static inline void sk_enter_memory_pressure(struct sock *sk) in sk_enter_memory_pressure()
1201 static inline long sk_prot_mem_limits(const struct sock *sk, int index) in sk_prot_mem_limits()
1227 sk_memory_allocated(const struct sock *sk) in sk_memory_allocated()
1238 sk_memory_allocated_add(struct sock *sk, int amt, int *parent_status) in sk_memory_allocated_add()
1253 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub()
1263 static inline void sk_sockets_allocated_dec(struct sock *sk) in sk_sockets_allocated_dec()
1277 static inline void sk_sockets_allocated_inc(struct sock *sk) in sk_sockets_allocated_inc()
1292 sk_sockets_allocated_read_positive(struct sock *sk) in sk_sockets_allocated_read_positive()
1338 static inline void __sk_prot_rehash(struct sock *sk) in __sk_prot_rehash()
1392 static inline bool sk_has_account(struct sock *sk) in sk_has_account()
1398 static inline bool sk_wmem_schedule(struct sock *sk, int size) in sk_wmem_schedule()
1407 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) in sk_rmem_schedule()
1416 static inline void sk_mem_reclaim(struct sock *sk) in sk_mem_reclaim()
1424 static inline void sk_mem_reclaim_partial(struct sock *sk) in sk_mem_reclaim_partial()
1432 static inline void sk_mem_charge(struct sock *sk, int size) in sk_mem_charge()
1439 static inline void sk_mem_uncharge(struct sock *sk, int size) in sk_mem_uncharge()
1446 static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in sk_wmem_free_skb()
1467 #define sock_owned_by_user(sk) ((sk)->sk_lock.owned) argument
1469 static inline void sock_release_ownership(struct sock *sk) in sock_release_ownership()
1481 #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ argument
1495 static inline void lock_sock(struct sock *sk) in lock_sock()
1518 static inline void unlock_sock_fast(struct sock *sk, bool slow) in unlock_sock_fast()
1633 static inline void sock_put(struct sock *sk) in sock_put()
1645 static inline void sk_tx_queue_set(struct sock *sk, int tx_queue) in sk_tx_queue_set()
1650 static inline void sk_tx_queue_clear(struct sock *sk) in sk_tx_queue_clear()
1655 static inline int sk_tx_queue_get(const struct sock *sk) in sk_tx_queue_get()
1660 static inline void sk_set_socket(struct sock *sk, struct socket *sock) in sk_set_socket()
1666 static inline wait_queue_head_t *sk_sleep(struct sock *sk) in sk_sleep()
1678 static inline void sock_orphan(struct sock *sk) in sock_orphan()
1687 static inline void sock_graft(struct sock *sk, struct socket *parent) in sock_graft()
1701 __sk_dst_get(struct sock *sk) in __sk_dst_get()
1708 sk_dst_get(struct sock *sk) in sk_dst_get()
1720 static inline void dst_negative_advice(struct sock *sk) in dst_negative_advice()
1735 __sk_dst_set(struct sock *sk, struct dst_entry *dst) in __sk_dst_set()
1750 sk_dst_set(struct sock *sk, struct dst_entry *dst) in sk_dst_set()
1760 __sk_dst_reset(struct sock *sk) in __sk_dst_reset()
1766 sk_dst_reset(struct sock *sk) in sk_dst_reset()
1777 static inline bool sk_can_gso(const struct sock *sk) in sk_can_gso()
1784 static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags) in sk_nocaps_add()
1790 static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_do_copy_data_nocache()
1808 static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_add_data_nocache()
1821 static inline int skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, in skb_copy_to_page_nocache()
1847 static inline int sk_wmem_alloc_get(const struct sock *sk) in sk_wmem_alloc_get()
1858 static inline int sk_rmem_alloc_get(const struct sock *sk) in sk_rmem_alloc_get()
1869 static inline bool sk_has_allocations(const struct sock *sk) in sk_has_allocations()
1939 static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) in skb_set_hash_from_sk()
1956 static inline void skb_set_owner_w(struct sk_buff *skb, struct sock *sk) in skb_set_owner_w()
1970 static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in skb_set_owner_r()
1993 static inline int sock_error(struct sock *sk) in sock_error()
2002 static inline unsigned long sock_wspace(struct sock *sk) in sock_wspace()
2014 static inline void sk_wake_async(struct sock *sk, int how, int band) in sk_wake_async()
2030 static inline void sk_stream_moderate_sndbuf(struct sock *sk) in sk_stream_moderate_sndbuf()
2047 static inline struct page_frag *sk_page_frag(struct sock *sk) in sk_page_frag()
2060 static inline bool sock_writeable(const struct sock *sk) in sock_writeable()
2070 static inline long sock_rcvtimeo(const struct sock *sk, bool noblock) in sock_rcvtimeo()
2075 static inline long sock_sndtimeo(const struct sock *sk, bool noblock) in sock_sndtimeo()
2080 static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len) in sock_rcvlowat()
2111 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) in sock_skb_set_dropcount()
2122 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) in sock_recv_timestamp()
2149 static inline void sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, in sock_recv_ts_and_drops()
2172 static inline void sock_tx_timestamp(const struct sock *sk, __u8 *tx_flags) in sock_tx_timestamp()
2188 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb) in sk_eat_skb()
2195 struct net *sock_net(const struct sock *sk) in sock_net()
2201 void sock_net_set(struct sock *sk, struct net *net) in sock_net_set()
2212 static inline void sk_change_net(struct sock *sk, struct net *net) in sk_change_net()
2225 struct sock *sk = skb->sk; in skb_steal_sock() local
2237 static inline bool sk_fullsock(const struct sock *sk) in sk_fullsock()