Lines Matching defs:sk
81 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument
86 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG()
544 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy()
549 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
551 #define rcu_dereference_sk_user_data(sk) \ argument
556 #define rcu_assign_sk_user_data(sk, ptr) \ argument
562 #define rcu_assign_sk_user_data_nocopy(sk, ptr) \ argument
583 static inline int sk_peek_offset(struct sock *sk, int flags) in sk_peek_offset()
592 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
602 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
635 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
640 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
648 static inline bool sk_unhashed(const struct sock *sk) in sk_unhashed()
653 static inline bool sk_hashed(const struct sock *sk) in sk_hashed()
668 static inline void __sk_del_node(struct sock *sk) in __sk_del_node()
674 static inline bool __sk_del_node_init(struct sock *sk) in __sk_del_node_init()
690 static __always_inline void sock_hold(struct sock *sk) in sock_hold()
698 static __always_inline void __sock_put(struct sock *sk) in __sock_put()
703 static inline bool sk_del_node_init(struct sock *sk) in sk_del_node_init()
714 #define sk_del_node_init_rcu(sk) sk_del_node_init(sk) argument
716 static inline bool __sk_nulls_del_node_init_rcu(struct sock *sk) in __sk_nulls_del_node_init_rcu()
725 static inline bool sk_nulls_del_node_init_rcu(struct sock *sk) in sk_nulls_del_node_init_rcu()
737 static inline void __sk_add_node(struct sock *sk, struct hlist_head *list) in __sk_add_node()
742 static inline void sk_add_node(struct sock *sk, struct hlist_head *list) in sk_add_node()
748 static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_rcu()
758 static inline void sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_tail_rcu()
764 static inline void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_rcu()
769 static inline void __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_tail_rcu()
774 static inline void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in sk_nulls_add_node_rcu()
780 static inline void __sk_del_bind_node(struct sock *sk) in __sk_del_bind_node()
785 static inline void sk_add_bind_node(struct sock *sk, in sk_add_bind_node()
823 static inline struct user_namespace *sk_user_ns(struct sock *sk) in sk_user_ns()
873 static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) in sock_set_flag()
878 static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag) in sock_reset_flag()
883 static inline void sock_valbool_flag(struct sock *sk, enum sock_flags bit, in sock_valbool_flag()
892 static inline bool sock_flag(const struct sock *sk, enum sock_flags flag) in sock_flag()
916 static inline gfp_t sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask) in sk_gfp_mask()
921 static inline void sk_acceptq_removed(struct sock *sk) in sk_acceptq_removed()
926 static inline void sk_acceptq_added(struct sock *sk) in sk_acceptq_added()
931 static inline bool sk_acceptq_is_full(const struct sock *sk) in sk_acceptq_is_full()
939 static inline int sk_stream_min_wspace(const struct sock *sk) in sk_stream_min_wspace()
944 static inline int sk_stream_wspace(const struct sock *sk) in sk_stream_wspace()
949 static inline void sk_wmem_queued_add(struct sock *sk, int val) in sk_wmem_queued_add()
957 static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb) in __sk_add_backlog()
976 static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit) in sk_rcvqueues_full()
984 static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, in sk_add_backlog()
1005 static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in sk_backlog_rcv()
1013 static inline void sk_incoming_cpu_update(struct sock *sk) in sk_incoming_cpu_update()
1033 static inline void sock_rps_record_flow(const struct sock *sk) in sock_rps_record_flow()
1053 static inline void sock_rps_save_rxhash(struct sock *sk, in sock_rps_save_rxhash()
1062 static inline void sock_rps_reset_rxhash(struct sock *sk) in sock_rps_reset_rxhash()
1094 static inline bool sk_flush_backlog(struct sock *sk) in sk_flush_backlog()
1116 static inline void sk_prot_clear_nulls(struct sock *sk, int size) in sk_prot_clear_nulls()
1243 static inline void sk_refcnt_debug_inc(struct sock *sk) in sk_refcnt_debug_inc()
1248 static inline void sk_refcnt_debug_dec(struct sock *sk) in sk_refcnt_debug_dec()
1255 static inline void sk_refcnt_debug_release(const struct sock *sk) in sk_refcnt_debug_release()
1262 #define sk_refcnt_debug_inc(sk) do { } while (0) argument
1263 #define sk_refcnt_debug_dec(sk) do { } while (0) argument
1264 #define sk_refcnt_debug_release(sk) do { } while (0) argument
1267 static inline bool __sk_stream_memory_free(const struct sock *sk, int wake) in __sk_stream_memory_free()
1276 static inline bool sk_stream_memory_free(const struct sock *sk) in sk_stream_memory_free()
1281 static inline bool __sk_stream_is_writeable(const struct sock *sk, int wake) in __sk_stream_is_writeable()
1287 static inline bool sk_stream_is_writeable(const struct sock *sk) in sk_stream_is_writeable()
1292 static inline int sk_under_cgroup_hierarchy(struct sock *sk, in sk_under_cgroup_hierarchy()
1303 static inline bool sk_has_memory_pressure(const struct sock *sk) in sk_has_memory_pressure()
1308 static inline bool sk_under_memory_pressure(const struct sock *sk) in sk_under_memory_pressure()
1321 sk_memory_allocated(const struct sock *sk) in sk_memory_allocated()
1327 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add()
1333 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub()
1338 static inline void sk_sockets_allocated_dec(struct sock *sk) in sk_sockets_allocated_dec()
1343 static inline void sk_sockets_allocated_inc(struct sock *sk) in sk_sockets_allocated_inc()
1349 sk_sockets_allocated_read_positive(struct sock *sk) in sk_sockets_allocated_read_positive()
1391 static inline int __sk_prot_rehash(struct sock *sk) in __sk_prot_rehash()
1444 static inline long sk_prot_mem_limits(const struct sock *sk, int index) in sk_prot_mem_limits()
1461 static inline bool sk_has_account(struct sock *sk) in sk_has_account()
1467 static inline bool sk_wmem_schedule(struct sock *sk, int size) in sk_wmem_schedule()
1476 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) in sk_rmem_schedule()
1485 static inline void sk_mem_reclaim(struct sock *sk) in sk_mem_reclaim()
1493 static inline void sk_mem_reclaim_partial(struct sock *sk) in sk_mem_reclaim_partial()
1501 static inline void sk_mem_charge(struct sock *sk, int size) in sk_mem_charge()
1508 static inline void sk_mem_uncharge(struct sock *sk, int size) in sk_mem_uncharge()
1526 static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) in sk_wmem_free_skb()
1540 static inline void sock_release_ownership(struct sock *sk) in sock_release_ownership()
1557 #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ argument
1570 static inline bool lockdep_sock_is_held(const struct sock *sk) in lockdep_sock_is_held()
1579 static inline void lock_sock(struct sock *sk) in lock_sock()
1603 static inline void unlock_sock_fast(struct sock *sk, bool slow) in unlock_sock_fast()
1625 static inline void sock_owned_by_me(const struct sock *sk) in sock_owned_by_me()
1632 static inline bool sock_owned_by_user(const struct sock *sk) in sock_owned_by_user()
1638 static inline bool sock_owned_by_user_nocheck(const struct sock *sk) in sock_owned_by_user_nocheck()
1646 struct sock *sk = (struct sock *)csk; in sock_allow_reclassification() local
1698 const struct sock *sk) in sockcm_init()
1776 static inline void sock_put(struct sock *sk) in sock_put()
1788 static inline int sk_receive_skb(struct sock *sk, struct sk_buff *skb, in sk_receive_skb()
1794 static inline void sk_tx_queue_set(struct sock *sk, int tx_queue) in sk_tx_queue_set()
1804 static inline void sk_tx_queue_clear(struct sock *sk) in sk_tx_queue_clear()
1809 static inline int sk_tx_queue_get(const struct sock *sk) in sk_tx_queue_get()
1817 static inline void sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) in sk_rx_queue_set()
1831 static inline void sk_rx_queue_clear(struct sock *sk) in sk_rx_queue_clear()
1839 static inline int sk_rx_queue_get(const struct sock *sk) in sk_rx_queue_get()
1848 static inline void sk_set_socket(struct sock *sk, struct socket *sock) in sk_set_socket()
1853 static inline wait_queue_head_t *sk_sleep(struct sock *sk) in sk_sleep()
1865 static inline void sock_orphan(struct sock *sk) in sock_orphan()
1874 static inline void sock_graft(struct sock *sk, struct socket *parent) in sock_graft()
1889 static inline kuid_t sock_net_uid(const struct net *net, const struct sock *sk) in sock_net_uid()
1901 static inline void sk_set_txhash(struct sock *sk) in sk_set_txhash()
1906 static inline void sk_rethink_txhash(struct sock *sk) in sk_rethink_txhash()
1913 __sk_dst_get(struct sock *sk) in __sk_dst_get()
1920 sk_dst_get(struct sock *sk) in sk_dst_get()
1932 static inline void dst_negative_advice(struct sock *sk) in dst_negative_advice()
1950 __sk_dst_set(struct sock *sk, struct dst_entry *dst) in __sk_dst_set()
1963 sk_dst_set(struct sock *sk, struct dst_entry *dst) in sk_dst_set()
1974 __sk_dst_reset(struct sock *sk) in __sk_dst_reset()
1980 sk_dst_reset(struct sock *sk) in sk_dst_reset()
1989 static inline void sk_dst_confirm(struct sock *sk) in sk_dst_confirm()
1998 struct sock *sk = skb->sk; in sock_confirm_neigh() local
2011 static inline bool sk_can_gso(const struct sock *sk) in sk_can_gso()
2018 static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags) in sk_nocaps_add()
2024 static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_do_copy_data_nocache()
2042 static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_add_data_nocache()
2055 static inline int skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, in skb_copy_to_page_nocache()
2081 static inline int sk_wmem_alloc_get(const struct sock *sk) in sk_wmem_alloc_get()
2092 static inline int sk_rmem_alloc_get(const struct sock *sk) in sk_rmem_alloc_get()
2103 static inline bool sk_has_allocations(const struct sock *sk) in sk_has_allocations()
2166 static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) in skb_set_hash_from_sk()
2184 static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in skb_set_owner_r()
2214 static inline int sock_error(struct sock *sk) in sock_error()
2223 static inline unsigned long sock_wspace(struct sock *sk) in sock_wspace()
2239 static inline void sk_set_bit(int nr, struct sock *sk) in sk_set_bit()
2248 static inline void sk_clear_bit(int nr, struct sock *sk) in sk_clear_bit()
2257 static inline void sk_wake_async(const struct sock *sk, int how, int band) in sk_wake_async()
2276 static inline void sk_stream_moderate_sndbuf(struct sock *sk) in sk_stream_moderate_sndbuf()
2306 static inline struct page_frag *sk_page_frag(struct sock *sk) in sk_page_frag()
2319 static inline bool sock_writeable(const struct sock *sk) in sock_writeable()
2329 static inline long sock_rcvtimeo(const struct sock *sk, bool noblock) in sock_rcvtimeo()
2334 static inline long sock_sndtimeo(const struct sock *sk, bool noblock) in sock_sndtimeo()
2339 static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len) in sock_rcvlowat()
2372 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) in sock_skb_set_dropcount()
2378 static inline void sk_drops_add(struct sock *sk, const struct sk_buff *skb) in sk_drops_add()
2385 static inline ktime_t sock_read_timestamp(struct sock *sk) in sock_read_timestamp()
2402 static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) in sock_write_timestamp()
2419 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) in sock_recv_timestamp()
2447 static inline void sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, in sock_recv_ts_and_drops()
2474 static inline void _sock_tx_timestamp(struct sock *sk, __u16 tsflags, in _sock_tx_timestamp()
2487 static inline void sock_tx_timestamp(struct sock *sk, __u16 tsflags, in sock_tx_timestamp()
2508 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb) in sk_eat_skb()
2521 struct net *sock_net(const struct sock *sk) in sock_net()
2527 void sock_net_set(struct sock *sk, struct net *net) in sock_net_set()
2545 static inline bool sk_fullsock(const struct sock *sk) in sk_fullsock()
2551 sk_is_refcounted(struct sock *sk) in sk_is_refcounted()
2566 struct sock *sk = skb->sk; in skb_steal_sock() local
2587 struct sock *sk = skb->sk; in sk_validate_xmit_skb() local
2606 static inline bool sk_listener(const struct sock *sk) in sk_listener()
2643 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2652 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()
2665 static inline void sk_pacing_shift_update(struct sock *sk, int val) in sk_pacing_shift_update()
2677 static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif) in sk_dev_equal_l3scope()