Lines Matching defs:sk

610 static inline bool sk_user_data_is_nocopy(const struct sock *sk)  in sk_user_data_is_nocopy()
615 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument
628 __locked_read_sk_user_data_with_flags(const struct sock *sk, in __locked_read_sk_user_data_with_flags()
651 __rcu_dereference_sk_user_data_with_flags(const struct sock *sk, in __rcu_dereference_sk_user_data_with_flags()
663 #define rcu_dereference_sk_user_data(sk) \ argument
665 #define __rcu_assign_sk_user_data_with_flags(sk, ptr, flags) \ argument
674 #define rcu_assign_sk_user_data(sk, ptr) \ argument
678 struct net *sock_net(const struct sock *sk) in sock_net()
684 void sock_net_set(struct sock *sk, struct net *net) in sock_net_set()
702 static inline int sk_peek_offset(const struct sock *sk, int flags) in sk_peek_offset()
711 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
721 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
754 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
759 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
767 static inline bool sk_unhashed(const struct sock *sk) in sk_unhashed()
772 static inline bool sk_hashed(const struct sock *sk) in sk_hashed()
782 static inline void __sk_del_node(struct sock *sk) in __sk_del_node()
788 static inline bool __sk_del_node_init(struct sock *sk) in __sk_del_node_init()
804 static __always_inline void sock_hold(struct sock *sk) in sock_hold()
812 static __always_inline void __sock_put(struct sock *sk) in __sock_put()
817 static inline bool sk_del_node_init(struct sock *sk) in sk_del_node_init()
828 #define sk_del_node_init_rcu(sk) sk_del_node_init(sk) argument
830 static inline bool __sk_nulls_del_node_init_rcu(struct sock *sk) in __sk_nulls_del_node_init_rcu()
839 static inline bool sk_nulls_del_node_init_rcu(struct sock *sk) in sk_nulls_del_node_init_rcu()
851 static inline void __sk_add_node(struct sock *sk, struct hlist_head *list) in __sk_add_node()
856 static inline void sk_add_node(struct sock *sk, struct hlist_head *list) in sk_add_node()
862 static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_rcu()
872 static inline void sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_tail_rcu()
878 static inline void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_rcu()
883 static inline void __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_tail_rcu()
888 static inline void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in sk_nulls_add_node_rcu()
894 static inline void __sk_del_bind_node(struct sock *sk) in __sk_del_bind_node()
899 static inline void sk_add_bind_node(struct sock *sk, in sk_add_bind_node()
939 static inline struct user_namespace *sk_user_ns(const struct sock *sk) in sk_user_ns()
998 static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) in sock_set_flag()
1003 static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag) in sock_reset_flag()
1008 static inline void sock_valbool_flag(struct sock *sk, enum sock_flags bit, in sock_valbool_flag()
1017 static inline bool sock_flag(const struct sock *sk, enum sock_flags flag) in sock_flag()
1041 static inline gfp_t sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask) in sk_gfp_mask()
1046 static inline void sk_acceptq_removed(struct sock *sk) in sk_acceptq_removed()
1051 static inline void sk_acceptq_added(struct sock *sk) in sk_acceptq_added()
1060 static inline bool sk_acceptq_is_full(const struct sock *sk) in sk_acceptq_is_full()
1068 static inline int sk_stream_min_wspace(const struct sock *sk) in sk_stream_min_wspace()
1073 static inline int sk_stream_wspace(const struct sock *sk) in sk_stream_wspace()
1078 static inline void sk_wmem_queued_add(struct sock *sk, int val) in sk_wmem_queued_add()
1083 static inline void sk_forward_alloc_add(struct sock *sk, int val) in sk_forward_alloc_add()
1092 static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb) in __sk_add_backlog()
1111 static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit) in sk_rcvqueues_full()
1119 static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, in sk_add_backlog()
1143 static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in sk_backlog_rcv()
1154 static inline void sk_incoming_cpu_update(struct sock *sk) in sk_incoming_cpu_update()
1163 static inline void sock_rps_save_rxhash(struct sock *sk, in sock_rps_save_rxhash()
1175 static inline void sock_rps_reset_rxhash(struct sock *sk) in sock_rps_reset_rxhash()
1208 static inline bool sk_flush_backlog(struct sock *sk) in sk_flush_backlog()
1231 static inline void sk_prot_clear_nulls(struct sock *sk, int size) in sk_prot_clear_nulls()
1373 static inline bool __sk_stream_memory_free(const struct sock *sk, int wake) in __sk_stream_memory_free()
1383 static inline bool sk_stream_memory_free(const struct sock *sk) in sk_stream_memory_free()
1388 static inline bool __sk_stream_is_writeable(const struct sock *sk, int wake) in __sk_stream_is_writeable()
1394 static inline bool sk_stream_is_writeable(const struct sock *sk) in sk_stream_is_writeable()
1399 static inline int sk_under_cgroup_hierarchy(struct sock *sk, in sk_under_cgroup_hierarchy()
1412 static inline void sk_sockets_allocated_dec(struct sock *sk) in sk_sockets_allocated_dec()
1418 static inline void sk_sockets_allocated_inc(struct sock *sk) in sk_sockets_allocated_inc()
1425 sk_sockets_allocated_read_positive(struct sock *sk) in sk_sockets_allocated_read_positive()
1471 static inline int __sk_prot_rehash(struct sock *sk) in __sk_prot_rehash()
1517 static inline long sk_prot_mem_limits(const struct sock *sk, int index) in sk_prot_mem_limits()
1527 static inline bool sk_has_account(struct sock *sk) in sk_has_account()
1533 static inline bool sk_wmem_schedule(struct sock *sk, int size) in sk_wmem_schedule()
1544 __sk_rmem_schedule(struct sock *sk, int size, bool pfmemalloc) in __sk_rmem_schedule()
1556 sk_rmem_schedule(struct sock *sk, const struct sk_buff *skb, int size) in sk_rmem_schedule()
1561 static inline int sk_unused_reserved_mem(const struct sock *sk) in sk_unused_reserved_mem()
1574 static inline void sk_mem_reclaim(struct sock *sk) in sk_mem_reclaim()
1587 static inline void sk_mem_reclaim_final(struct sock *sk) in sk_mem_reclaim_final()
1593 static inline void sk_mem_charge(struct sock *sk, int size) in sk_mem_charge()
1600 static inline void sk_mem_uncharge(struct sock *sk, int size) in sk_mem_uncharge()
1609 static inline void sk_owner_set(struct sock *sk, struct module *owner) in sk_owner_set()
1615 static inline void sk_owner_clear(struct sock *sk) in sk_owner_clear()
1620 static inline void sk_owner_put(struct sock *sk) in sk_owner_put()
1625 static inline void sk_owner_set(struct sock *sk, struct module *owner) in sk_owner_set()
1629 static inline void sk_owner_clear(struct sock *sk) in sk_owner_clear()
1633 static inline void sk_owner_put(struct sock *sk) in sk_owner_put()
1644 #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ argument
1657 static inline bool lockdep_sock_is_held(const struct sock *sk) in lockdep_sock_is_held()
1665 static inline void lock_sock(struct sock *sk) in lock_sock()
1696 static inline bool lock_sock_fast(struct sock *sk) in lock_sock_fast()
1705 static inline bool lock_sock_fast_nested(struct sock *sk) in lock_sock_fast_nested()
1720 static inline void unlock_sock_fast(struct sock *sk, bool slow) in unlock_sock_fast()
1751 static inline void sock_owned_by_me(const struct sock *sk) in sock_owned_by_me()
1758 static inline void sock_not_owned_by_me(const struct sock *sk) in sock_not_owned_by_me()
1765 static inline bool sock_owned_by_user(const struct sock *sk) in sock_owned_by_user()
1771 static inline bool sock_owned_by_user_nocheck(const struct sock *sk) in sock_owned_by_user_nocheck()
1776 static inline void sock_release_ownership(struct sock *sk) in sock_release_ownership()
1788 struct sock *sk = (struct sock *)csk; in sock_allow_reclassification() local
1814 static inline void skb_set_owner_edemux(struct sk_buff *skb, struct sock *sk) in skb_set_owner_edemux()
1843 static inline struct sk_buff *sock_alloc_send_skb(struct sock *sk, in sock_alloc_send_skb()
1857 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
1874 const struct sock *sk) in sockcm_init()
1957 static inline void sock_put(struct sock *sk) in sock_put()
1969 static inline int sk_receive_skb(struct sock *sk, struct sk_buff *skb, in sk_receive_skb()
1975 static inline void sk_tx_queue_set(struct sock *sk, int tx_queue) in sk_tx_queue_set()
1988 static inline void sk_tx_queue_clear(struct sock *sk) in sk_tx_queue_clear()
1996 static inline int sk_tx_queue_get(const struct sock *sk) in sk_tx_queue_get()
2010 static inline void __sk_rx_queue_set(struct sock *sk, in __sk_rx_queue_set()
2025 static inline void sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) in sk_rx_queue_set()
2030 static inline void sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb) in sk_rx_queue_update()
2035 static inline void sk_rx_queue_clear(struct sock *sk) in sk_rx_queue_clear()
2042 static inline int sk_rx_queue_get(const struct sock *sk) in sk_rx_queue_get()
2056 static inline void sk_set_socket(struct sock *sk, struct socket *sock) in sk_set_socket()
2061 static inline wait_queue_head_t *sk_sleep(struct sock *sk) in sk_sleep()
2073 static inline void sock_orphan(struct sock *sk) in sock_orphan()
2083 static inline void sock_graft(struct sock *sk, struct socket *parent) in sock_graft()
2095 static inline kuid_t sk_uid(const struct sock *sk) in sk_uid()
2104 static inline kuid_t sock_net_uid(const struct net *net, const struct sock *sk) in sock_net_uid()
2116 static inline void sk_set_txhash(struct sock *sk) in sk_set_txhash()
2122 static inline bool sk_rethink_txhash(struct sock *sk) in sk_rethink_txhash()
2132 __sk_dst_get(const struct sock *sk) in __sk_dst_get()
2139 sk_dst_get(const struct sock *sk) in sk_dst_get()
2151 static inline void __dst_negative_advice(struct sock *sk) in __dst_negative_advice()
2159 static inline void dst_negative_advice(struct sock *sk) in dst_negative_advice()
2166 __sk_dst_set(struct sock *sk, struct dst_entry *dst) in __sk_dst_set()
2179 sk_dst_set(struct sock *sk, struct dst_entry *dst) in sk_dst_set()
2190 __sk_dst_reset(struct sock *sk) in __sk_dst_reset()
2196 sk_dst_reset(struct sock *sk) in sk_dst_reset()
2205 static inline void sk_dst_confirm(struct sock *sk) in sk_dst_confirm()
2214 struct sock *sk = skb->sk; in sock_confirm_neigh() local
2224 static inline bool sk_can_gso(const struct sock *sk) in sk_can_gso()
2231 static inline void sk_gso_disable(struct sock *sk) in sk_gso_disable()
2237 static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_do_copy_data_nocache()
2255 static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_add_data_nocache()
2268 static inline int skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, in skb_copy_to_page_nocache()
2292 static inline int sk_wmem_alloc_get(const struct sock *sk) in sk_wmem_alloc_get()
2303 static inline int sk_rmem_alloc_get(const struct sock *sk) in sk_rmem_alloc_get()
2314 static inline bool sk_has_allocations(const struct sock *sk) in sk_has_allocations()
2374 static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) in skb_set_hash_from_sk()
2395 static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in skb_set_owner_r()
2404 static inline __must_check bool skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk) in skb_set_owner_sk_safe()
2415 static inline struct sk_buff *skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk) in skb_clone_and_charge_r()
2453 static inline int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in sock_queue_rcv_skb()
2465 static inline int sock_error(struct sock *sk) in sock_error()
2481 static inline unsigned long sock_wspace(struct sock *sk) in sock_wspace()
2497 static inline void sk_set_bit(int nr, struct sock *sk) in sk_set_bit()
2506 static inline void sk_clear_bit(int nr, struct sock *sk) in sk_clear_bit()
2515 static inline void sk_wake_async(const struct sock *sk, int how, int band) in sk_wake_async()
2524 static inline void sk_wake_async_rcu(const struct sock *sk, int how, int band) in sk_wake_async_rcu()
2540 static inline void sk_stream_moderate_sndbuf(struct sock *sk) in sk_stream_moderate_sndbuf()
2569 static inline struct page_frag *sk_page_frag(struct sock *sk) in sk_page_frag()
2582 static inline bool sock_writeable(const struct sock *sk) in sock_writeable()
2597 static inline long sock_rcvtimeo(const struct sock *sk, bool noblock) in sock_rcvtimeo()
2602 static inline long sock_sndtimeo(const struct sock *sk, bool noblock) in sock_sndtimeo()
2607 static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len) in sock_rcvlowat()
2640 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) in sock_skb_set_dropcount()
2646 static inline void sk_drops_add(struct sock *sk, const struct sk_buff *skb) in sk_drops_add()
2653 static inline ktime_t sock_read_timestamp(struct sock *sk) in sock_read_timestamp()
2670 static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) in sock_write_timestamp()
2691 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) in sock_recv_timestamp()
2719 static inline void sock_recv_cmsgs(struct msghdr *msg, struct sock *sk, in sock_recv_cmsgs()
2749 static inline void _sock_tx_timestamp(struct sock *sk, in _sock_tx_timestamp()
2767 static inline void sock_tx_timestamp(struct sock *sk, in sock_tx_timestamp()
2781 static inline bool sk_is_inet(const struct sock *sk) in sk_is_inet()
2788 static inline bool sk_is_tcp(const struct sock *sk) in sk_is_tcp()
2795 static inline bool sk_is_udp(const struct sock *sk) in sk_is_udp()
2802 static inline bool sk_is_unix(const struct sock *sk) in sk_is_unix()
2807 static inline bool sk_is_stream_unix(const struct sock *sk) in sk_is_stream_unix()
2812 static inline bool sk_is_vsock(const struct sock *sk) in sk_is_vsock()
2817 static inline bool sk_may_scm_recv(const struct sock *sk) in sk_may_scm_recv()
2832 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb) in sk_eat_skb()
2851 static inline bool sk_fullsock(const struct sock *sk) in sk_fullsock()
2857 sk_is_refcounted(struct sock *sk) in sk_is_refcounted()
2864 sk_requests_wifi_status(struct sock *sk) in sk_requests_wifi_status()
2877 struct sock *sk = skb->sk; in sk_validate_xmit_skb() local
2894 static inline bool sk_listener(const struct sock *sk) in sk_listener()
2903 static inline bool sk_listener_or_tw(const struct sock *sk) in sk_listener_or_tw()
2939 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2948 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()
2961 static inline void sk_pacing_shift_update(struct sock *sk, int val) in sk_pacing_shift_update()
2973 static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif) in sk_dev_equal_l3scope()
2998 static inline void bpf_skops_tx_timestamping(struct sock *sk, struct sk_buff *skb, int op) in bpf_skops_tx_timestamping()
3020 static inline bool sk_is_readable(struct sock *sk) in sk_is_readable()