Lines Matching refs:sock
98 struct sock;
199 struct sock *skc_listener; /* request_sock */
342 struct sock { struct
429 void (*sk_data_ready)(struct sock *sk); argument
481 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk, argument
534 void (*sk_state_change)(struct sock *sk); argument
535 void (*sk_write_space)(struct sock *sk); argument
536 void (*sk_error_report)(struct sock *sk); argument
537 int (*sk_backlog_rcv)(struct sock *sk, argument
539 void (*sk_destruct)(struct sock *sk); argument
550 struct sock *sock; member
585 static inline bool sk_user_data_is_nocopy(const struct sock *sk) in sk_user_data_is_nocopy()
603 __locked_read_sk_user_data_with_flags(const struct sock *sk, in __locked_read_sk_user_data_with_flags()
626 __rcu_dereference_sk_user_data_with_flags(const struct sock *sk, in __rcu_dereference_sk_user_data_with_flags()
653 struct net *sock_net(const struct sock *sk) in sock_net()
659 void sock_net_set(struct sock *sk, struct net *net) in sock_net_set()
675 int sk_set_peek_off(struct sock *sk, int val);
677 static inline int sk_peek_offset(const struct sock *sk, int flags) in sk_peek_offset()
686 static inline void sk_peek_offset_bwd(struct sock *sk, int val) in sk_peek_offset_bwd()
696 static inline void sk_peek_offset_fwd(struct sock *sk, int val) in sk_peek_offset_fwd()
704 static inline struct sock *sk_entry(const struct hlist_node *node) in sk_entry()
706 return hlist_entry(node, struct sock, sk_node); in sk_entry()
709 static inline struct sock *__sk_head(const struct hlist_head *head) in __sk_head()
711 return hlist_entry(head->first, struct sock, sk_node); in __sk_head()
714 static inline struct sock *sk_head(const struct hlist_head *head) in sk_head()
719 static inline struct sock *__sk_nulls_head(const struct hlist_nulls_head *head) in __sk_nulls_head()
721 return hlist_nulls_entry(head->first, struct sock, sk_nulls_node); in __sk_nulls_head()
724 static inline struct sock *sk_nulls_head(const struct hlist_nulls_head *head) in sk_nulls_head()
729 static inline struct sock *sk_next(const struct sock *sk) in sk_next()
731 return hlist_entry_safe(sk->sk_node.next, struct sock, sk_node); in sk_next()
734 static inline struct sock *sk_nulls_next(const struct sock *sk) in sk_nulls_next()
738 struct sock, sk_nulls_node) : in sk_nulls_next()
742 static inline bool sk_unhashed(const struct sock *sk) in sk_unhashed()
747 static inline bool sk_hashed(const struct sock *sk) in sk_hashed()
757 static inline void __sk_del_node(struct sock *sk) in __sk_del_node()
763 static inline bool __sk_del_node_init(struct sock *sk) in __sk_del_node_init()
779 static __always_inline void sock_hold(struct sock *sk) in sock_hold()
787 static __always_inline void __sock_put(struct sock *sk) in __sock_put()
792 static inline bool sk_del_node_init(struct sock *sk) in sk_del_node_init()
805 static inline bool __sk_nulls_del_node_init_rcu(struct sock *sk) in __sk_nulls_del_node_init_rcu()
814 static inline bool sk_nulls_del_node_init_rcu(struct sock *sk) in sk_nulls_del_node_init_rcu()
826 static inline void __sk_add_node(struct sock *sk, struct hlist_head *list) in __sk_add_node()
831 static inline void sk_add_node(struct sock *sk, struct hlist_head *list) in sk_add_node()
837 static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_rcu()
847 static inline void sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list) in sk_add_node_tail_rcu()
853 static inline void __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_rcu()
858 static inline void __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list) in __sk_nulls_add_node_tail_rcu()
863 static inline void sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) in sk_nulls_add_node_rcu()
869 static inline void __sk_del_bind_node(struct sock *sk) in __sk_del_bind_node()
874 static inline void sk_add_bind_node(struct sock *sk, in sk_add_bind_node()
914 static inline struct user_namespace *sk_user_ns(const struct sock *sk) in sk_user_ns()
960 static inline void sock_copy_flags(struct sock *nsk, const struct sock *osk) in sock_copy_flags()
965 static inline void sock_set_flag(struct sock *sk, enum sock_flags flag) in sock_set_flag()
970 static inline void sock_reset_flag(struct sock *sk, enum sock_flags flag) in sock_reset_flag()
975 static inline void sock_valbool_flag(struct sock *sk, enum sock_flags bit, in sock_valbool_flag()
984 static inline bool sock_flag(const struct sock *sk, enum sock_flags flag) in sock_flag()
1008 static inline gfp_t sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask) in sk_gfp_mask()
1013 static inline void sk_acceptq_removed(struct sock *sk) in sk_acceptq_removed()
1018 static inline void sk_acceptq_added(struct sock *sk) in sk_acceptq_added()
1027 static inline bool sk_acceptq_is_full(const struct sock *sk) in sk_acceptq_is_full()
1035 static inline int sk_stream_min_wspace(const struct sock *sk) in sk_stream_min_wspace()
1040 static inline int sk_stream_wspace(const struct sock *sk) in sk_stream_wspace()
1045 static inline void sk_wmem_queued_add(struct sock *sk, int val) in sk_wmem_queued_add()
1050 static inline void sk_forward_alloc_add(struct sock *sk, int val) in sk_forward_alloc_add()
1056 void sk_stream_write_space(struct sock *sk);
1059 static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb) in __sk_add_backlog()
1078 static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit) in sk_rcvqueues_full()
1086 static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, in sk_add_backlog()
1105 int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb);
1107 INDIRECT_CALLABLE_DECLARE(int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb));
1108 INDIRECT_CALLABLE_DECLARE(int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb));
1110 static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in sk_backlog_rcv()
1121 static inline void sk_incoming_cpu_update(struct sock *sk) in sk_incoming_cpu_update()
1130 static inline void sock_rps_save_rxhash(struct sock *sk, in sock_rps_save_rxhash()
1142 static inline void sock_rps_reset_rxhash(struct sock *sk) in sock_rps_reset_rxhash()
1165 int sk_stream_wait_connect(struct sock *sk, long *timeo_p);
1166 int sk_stream_wait_memory(struct sock *sk, long *timeo_p);
1167 void sk_stream_wait_close(struct sock *sk, long timeo_p);
1168 int sk_stream_error(struct sock *sk, int flags, int err);
1169 void sk_stream_kill_queues(struct sock *sk);
1170 void sk_set_memalloc(struct sock *sk);
1171 void sk_clear_memalloc(struct sock *sk);
1173 void __sk_flush_backlog(struct sock *sk);
1175 static inline bool sk_flush_backlog(struct sock *sk) in sk_flush_backlog()
1184 int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb);
1198 static inline void sk_prot_clear_nulls(struct sock *sk, int size) in sk_prot_clear_nulls()
1200 if (offsetof(struct sock, sk_node.next) != 0) in sk_prot_clear_nulls()
1201 memset(sk, 0, offsetof(struct sock, sk_node.next)); in sk_prot_clear_nulls()
1203 size - offsetof(struct sock, sk_node.pprev)); in sk_prot_clear_nulls()
1217 void (*close)(struct sock *sk,
1219 int (*pre_connect)(struct sock *sk,
1222 int (*connect)(struct sock *sk,
1225 int (*disconnect)(struct sock *sk, int flags);
1227 struct sock * (*accept)(struct sock *sk,
1230 int (*ioctl)(struct sock *sk, int cmd,
1232 int (*init)(struct sock *sk);
1233 void (*destroy)(struct sock *sk);
1234 void (*shutdown)(struct sock *sk, int how);
1235 int (*setsockopt)(struct sock *sk, int level,
1238 int (*getsockopt)(struct sock *sk, int level,
1241 void (*keepalive)(struct sock *sk, int valbool);
1243 int (*compat_ioctl)(struct sock *sk,
1246 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1248 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1250 void (*splice_eof)(struct socket *sock);
1251 int (*bind)(struct sock *sk,
1253 int (*bind_add)(struct sock *sk,
1256 int (*backlog_rcv) (struct sock *sk,
1261 void (*release_cb)(struct sock *sk);
1264 int (*hash)(struct sock *sk);
1265 void (*unhash)(struct sock *sk);
1266 void (*rehash)(struct sock *sk);
1267 int (*get_port)(struct sock *sk, unsigned short snum);
1268 void (*put_port)(struct sock *sk);
1270 int (*psock_update_sk_prot)(struct sock *sk,
1281 int (*forward_alloc_get)(const struct sock *sk);
1284 bool (*stream_memory_free)(const struct sock *sk, int wake);
1285 bool (*sock_is_readable)(struct sock *sk);
1287 void (*enter_memory_pressure)(struct sock *sk);
1288 void (*leave_memory_pressure)(struct sock *sk);
1335 int (*diag_destroy)(struct sock *sk, int err);
1342 INDIRECT_CALLABLE_DECLARE(bool tcp_stream_memory_free(const struct sock *sk, int wake));
1344 static inline int sk_forward_alloc_get(const struct sock *sk) in sk_forward_alloc_get()
1353 static inline bool __sk_stream_memory_free(const struct sock *sk, int wake) in __sk_stream_memory_free()
1363 static inline bool sk_stream_memory_free(const struct sock *sk) in sk_stream_memory_free()
1368 static inline bool __sk_stream_is_writeable(const struct sock *sk, int wake) in __sk_stream_is_writeable()
1374 static inline bool sk_stream_is_writeable(const struct sock *sk) in sk_stream_is_writeable()
1379 static inline int sk_under_cgroup_hierarchy(struct sock *sk, in sk_under_cgroup_hierarchy()
1392 static inline void sk_sockets_allocated_dec(struct sock *sk) in sk_sockets_allocated_dec()
1398 static inline void sk_sockets_allocated_inc(struct sock *sk) in sk_sockets_allocated_inc()
1405 sk_sockets_allocated_read_positive(struct sock *sk) in sk_sockets_allocated_read_positive()
1451 static inline int __sk_prot_rehash(struct sock *sk) in __sk_prot_rehash()
1488 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1489 int __sk_mem_schedule(struct sock *sk, int size, int kind);
1490 void __sk_mem_reduce_allocated(struct sock *sk, int amount);
1491 void __sk_mem_reclaim(struct sock *sk, int amount);
1497 static inline long sk_prot_mem_limits(const struct sock *sk, int index) in sk_prot_mem_limits()
1507 static inline bool sk_has_account(struct sock *sk) in sk_has_account()
1513 static inline bool sk_wmem_schedule(struct sock *sk, int size) in sk_wmem_schedule()
1524 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) in sk_rmem_schedule()
1535 static inline int sk_unused_reserved_mem(const struct sock *sk) in sk_unused_reserved_mem()
1548 static inline void sk_mem_reclaim(struct sock *sk) in sk_mem_reclaim()
1561 static inline void sk_mem_reclaim_final(struct sock *sk) in sk_mem_reclaim_final()
1567 static inline void sk_mem_charge(struct sock *sk, int size) in sk_mem_charge()
1574 static inline void sk_mem_uncharge(struct sock *sk, int size) in sk_mem_uncharge()
1601 static inline bool lockdep_sock_is_held(const struct sock *sk) in lockdep_sock_is_held()
1607 void lock_sock_nested(struct sock *sk, int subclass);
1609 static inline void lock_sock(struct sock *sk) in lock_sock()
1614 void __lock_sock(struct sock *sk);
1615 void __release_sock(struct sock *sk);
1616 void release_sock(struct sock *sk);
1625 bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock);
1640 static inline bool lock_sock_fast(struct sock *sk) in lock_sock_fast()
1649 static inline bool lock_sock_fast_nested(struct sock *sk) in lock_sock_fast_nested()
1664 static inline void unlock_sock_fast(struct sock *sk, bool slow) in unlock_sock_fast()
1676 void sockopt_lock_sock(struct sock *sk);
1677 void sockopt_release_sock(struct sock *sk);
1695 static inline void sock_owned_by_me(const struct sock *sk) in sock_owned_by_me()
1702 static inline void sock_not_owned_by_me(const struct sock *sk) in sock_not_owned_by_me()
1709 static inline bool sock_owned_by_user(const struct sock *sk) in sock_owned_by_user()
1715 static inline bool sock_owned_by_user_nocheck(const struct sock *sk) in sock_owned_by_user_nocheck()
1720 static inline void sock_release_ownership(struct sock *sk) in sock_release_ownership()
1730 static inline bool sock_allow_reclassification(const struct sock *csk) in sock_allow_reclassification()
1732 struct sock *sk = (struct sock *)csk; in sock_allow_reclassification()
1738 struct sock *sk_alloc(struct net *net, int family, gfp_t priority,
1740 void sk_free(struct sock *sk);
1741 void sk_destruct(struct sock *sk);
1742 struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority);
1743 void sk_free_unlock_clone(struct sock *sk);
1745 struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force,
1749 struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size,
1761 int sk_setsockopt(struct sock *sk, int level, int optname,
1763 int sock_setsockopt(struct socket *sock, int level, int op,
1765 int do_sock_setsockopt(struct socket *sock, bool compat, int level,
1767 int do_sock_getsockopt(struct socket *sock, bool compat, int level,
1770 int sk_getsockopt(struct sock *sk, int level, int optname,
1772 int sock_gettstamp(struct socket *sock, void __user *userstamp,
1774 struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
1778 static inline struct sk_buff *sock_alloc_send_skb(struct sock *sk, in sock_alloc_send_skb()
1785 void *sock_kmalloc(struct sock *sk, int size, gfp_t priority);
1786 void sock_kfree_s(struct sock *sk, void *mem, int size);
1787 void sock_kzfree_s(struct sock *sk, void *mem, int size);
1788 void sk_send_sigurg(struct sock *sk);
1790 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
1804 const struct sock *sk) in sockcm_init()
1811 int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg,
1813 int sock_cmsg_send(struct sock *sk, struct msghdr *msg,
1829 int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len);
1831 int sock_no_mmap(struct file *file, struct socket *sock,
1838 int sock_common_getsockopt(struct socket *sock, int level, int optname,
1840 int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
1842 int sock_common_setsockopt(struct socket *sock, int level, int optname,
1845 void sk_common_release(struct sock *sk);
1852 void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid);
1857 void sock_init_data(struct socket *sock, struct sock *sk);
1885 static inline void sock_put(struct sock *sk) in sock_put()
1893 void sock_gen_put(struct sock *sk);
1895 int __sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested,
1897 static inline int sk_receive_skb(struct sock *sk, struct sk_buff *skb, in sk_receive_skb()
1903 static inline void sk_tx_queue_set(struct sock *sk, int tx_queue) in sk_tx_queue_set()
1916 static inline void sk_tx_queue_clear(struct sock *sk) in sk_tx_queue_clear()
1924 static inline int sk_tx_queue_get(const struct sock *sk) in sk_tx_queue_get()
1938 static inline void __sk_rx_queue_set(struct sock *sk, in __sk_rx_queue_set()
1953 static inline void sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) in sk_rx_queue_set()
1958 static inline void sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb) in sk_rx_queue_update()
1963 static inline void sk_rx_queue_clear(struct sock *sk) in sk_rx_queue_clear()
1970 static inline int sk_rx_queue_get(const struct sock *sk) in sk_rx_queue_get()
1984 static inline void sk_set_socket(struct sock *sk, struct socket *sock) in sk_set_socket() argument
1986 sk->sk_socket = sock; in sk_set_socket()
1989 static inline wait_queue_head_t *sk_sleep(struct sock *sk) in sk_sleep()
2001 static inline void sock_orphan(struct sock *sk) in sock_orphan()
2010 static inline void sock_graft(struct sock *sk, struct socket *parent) in sock_graft()
2022 kuid_t sock_i_uid(struct sock *sk);
2023 unsigned long __sock_i_ino(struct sock *sk);
2024 unsigned long sock_i_ino(struct sock *sk);
2026 static inline kuid_t sock_net_uid(const struct net *net, const struct sock *sk) in sock_net_uid()
2038 static inline void sk_set_txhash(struct sock *sk) in sk_set_txhash()
2044 static inline bool sk_rethink_txhash(struct sock *sk) in sk_rethink_txhash()
2054 __sk_dst_get(const struct sock *sk) in __sk_dst_get()
2061 sk_dst_get(const struct sock *sk) in sk_dst_get()
2073 static inline void __dst_negative_advice(struct sock *sk) in __dst_negative_advice()
2081 static inline void dst_negative_advice(struct sock *sk) in dst_negative_advice()
2088 __sk_dst_set(struct sock *sk, struct dst_entry *dst) in __sk_dst_set()
2101 sk_dst_set(struct sock *sk, struct dst_entry *dst) in sk_dst_set()
2112 __sk_dst_reset(struct sock *sk) in __sk_dst_reset()
2118 sk_dst_reset(struct sock *sk) in sk_dst_reset()
2123 struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie);
2125 struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie);
2127 static inline void sk_dst_confirm(struct sock *sk) in sk_dst_confirm()
2136 struct sock *sk = skb->sk; in sock_confirm_neigh()
2144 bool sk_mc_loop(const struct sock *sk);
2146 static inline bool sk_can_gso(const struct sock *sk) in sk_can_gso()
2151 void sk_setup_caps(struct sock *sk, struct dst_entry *dst);
2153 static inline void sk_gso_disable(struct sock *sk) in sk_gso_disable()
2159 static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_do_copy_data_nocache()
2177 static inline int skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, in skb_add_data_nocache()
2190 static inline int skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, in skb_copy_to_page_nocache()
2214 static inline int sk_wmem_alloc_get(const struct sock *sk) in sk_wmem_alloc_get()
2225 static inline int sk_rmem_alloc_get(const struct sock *sk) in sk_rmem_alloc_get()
2236 static inline bool sk_has_allocations(const struct sock *sk) in sk_has_allocations()
2285 static inline void sock_poll_wait(struct file *filp, struct socket *sock, in sock_poll_wait() argument
2289 poll_wait(filp, &sock->wq.wait, p); in sock_poll_wait()
2299 static inline void skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) in skb_set_hash_from_sk()
2310 void skb_set_owner_w(struct sk_buff *skb, struct sock *sk);
2320 static inline void skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in skb_set_owner_r()
2329 static inline __must_check bool skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk) in skb_set_owner_sk_safe()
2340 static inline struct sk_buff *skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk) in skb_clone_and_charge_r()
2362 void sk_reset_timer(struct sock *sk, struct timer_list *timer,
2365 void sk_stop_timer(struct sock *sk, struct timer_list *timer);
2367 void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer);
2369 int __sk_queue_drop_skb(struct sock *sk, struct sk_buff_head *sk_queue,
2371 void (*destructor)(struct sock *sk,
2373 int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);
2375 int sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb,
2378 static inline int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in sock_queue_rcv_skb()
2383 int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb);
2384 struct sk_buff *sock_dequeue_err_skb(struct sock *sk);
2390 static inline int sock_error(struct sock *sk) in sock_error()
2404 void sk_error_report(struct sock *sk);
2406 static inline unsigned long sock_wspace(struct sock *sk) in sock_wspace()
2422 static inline void sk_set_bit(int nr, struct sock *sk) in sk_set_bit()
2431 static inline void sk_clear_bit(int nr, struct sock *sk) in sk_clear_bit()
2440 static inline void sk_wake_async(const struct sock *sk, int how, int band) in sk_wake_async()
2449 static inline void sk_wake_async_rcu(const struct sock *sk, int how, int band) in sk_wake_async_rcu()
2465 static inline void sk_stream_moderate_sndbuf(struct sock *sk) in sk_stream_moderate_sndbuf()
2494 static inline struct page_frag *sk_page_frag(struct sock *sk) in sk_page_frag()
2502 bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag);
2507 static inline bool sock_writeable(const struct sock *sk) in sock_writeable()
2522 static inline long sock_rcvtimeo(const struct sock *sk, bool noblock) in sock_rcvtimeo()
2527 static inline long sock_sndtimeo(const struct sock *sk, bool noblock) in sock_sndtimeo()
2532 static inline int sock_rcvlowat(const struct sock *sk, int waitall, int len) in sock_rcvlowat()
2565 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) in sock_skb_set_dropcount()
2571 static inline void sk_drops_add(struct sock *sk, const struct sk_buff *skb) in sk_drops_add()
2578 static inline ktime_t sock_read_timestamp(struct sock *sk) in sock_read_timestamp()
2595 static inline void sock_write_timestamp(struct sock *sk, ktime_t kt) in sock_write_timestamp()
2606 void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk,
2608 void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk,
2612 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) in sock_recv_timestamp()
2636 void __sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
2640 static inline void sock_recv_cmsgs(struct msghdr *msg, struct sock *sk, in sock_recv_cmsgs()
2669 static inline void _sock_tx_timestamp(struct sock *sk, __u16 tsflags, in _sock_tx_timestamp()
2682 static inline void sock_tx_timestamp(struct sock *sk, __u16 tsflags, in sock_tx_timestamp()
2694 static inline bool sk_is_inet(const struct sock *sk) in sk_is_inet()
2701 static inline bool sk_is_tcp(const struct sock *sk) in sk_is_tcp()
2708 static inline bool sk_is_udp(const struct sock *sk) in sk_is_udp()
2715 static inline bool sk_is_stream_unix(const struct sock *sk) in sk_is_stream_unix()
2720 static inline bool sk_is_vsock(const struct sock *sk) in sk_is_vsock()
2733 static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb) in sk_eat_skb()
2752 static inline bool sk_fullsock(const struct sock *sk) in sk_fullsock()
2758 sk_is_refcounted(struct sock *sk) in sk_is_refcounted()
2772 struct sock *sk = skb->sk; in sk_validate_xmit_skb()
2789 static inline bool sk_listener(const struct sock *sk) in sk_listener()
2794 void sock_enable_timestamp(struct sock *sk, enum sock_flags flag);
2795 int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, int level,
2798 bool sk_ns_capable(const struct sock *sk,
2800 bool sk_capable(const struct sock *sk, int cap);
2801 bool sk_net_capable(const struct sock *sk, int cap);
2803 void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
2826 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2835 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()
2848 static inline void sk_pacing_shift_update(struct sock *sk, int val) in sk_pacing_shift_update()
2860 static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif) in sk_dev_equal_l3scope()
2875 void sock_def_readable(struct sock *sk);
2877 int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk);
2878 void sock_set_timestamp(struct sock *sk, int optname, bool valbool);
2879 int sock_set_timestamping(struct sock *sk, int optname,
2882 void sock_enable_timestamps(struct sock *sk);
2883 void sock_no_linger(struct sock *sk);
2884 void sock_set_keepalive(struct sock *sk);
2885 void sock_set_priority(struct sock *sk, u32 priority);
2886 void sock_set_rcvbuf(struct sock *sk, int val);
2887 void sock_set_mark(struct sock *sk, u32 val);
2888 void sock_set_reuseaddr(struct sock *sk);
2889 void sock_set_reuseport(struct sock *sk);
2890 void sock_set_sndtimeo(struct sock *sk, s64 secs);
2892 int sock_bind_add(struct sock *sk, struct sockaddr *addr, int addr_len);
2898 int sock_ioctl_inout(struct sock *sk, unsigned int cmd,
2900 int sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg);
2901 static inline bool sk_is_readable(struct sock *sk) in sk_is_readable()