/kernel/linux/linux-5.10/include/net/ |
H A D | sock.h | 84 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ 89 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() argument 277 * @sk_napi_id: id of the last napi context to receive data for sk 515 void (*sk_state_change)(struct sock *sk); 516 void (*sk_data_ready)(struct sock *sk); 517 void (*sk_write_space)(struct sock *sk); 518 void (*sk_error_report)(struct sock *sk); 519 int (*sk_backlog_rcv)(struct sock *sk, 565 sk_user_data_is_nocopy(const struct sock *sk) sk_user_data_is_nocopy() argument 581 __rcu_dereference_sk_user_data_with_flags(const struct sock *sk, uintptr_t flags) __rcu_dereference_sk_user_data_with_flags() argument 620 sk_peek_offset(struct sock *sk, int flags) sk_peek_offset() argument 629 sk_peek_offset_bwd(struct sock *sk, int val) sk_peek_offset_bwd() argument 639 sk_peek_offset_fwd(struct sock *sk, int val) sk_peek_offset_fwd() argument 672 sk_next(const struct sock *sk) sk_next() argument 677 sk_nulls_next(const struct sock *sk) sk_nulls_next() argument 685 sk_unhashed(const struct sock *sk) sk_unhashed() argument 690 sk_hashed(const struct sock *sk) sk_hashed() argument 705 __sk_del_node(struct sock *sk) __sk_del_node() argument 711 __sk_del_node_init(struct sock *sk) __sk_del_node_init() argument 727 sock_hold(struct sock *sk) sock_hold() argument 735 __sock_put(struct sock *sk) __sock_put() argument 740 sk_del_node_init(struct sock *sk) sk_del_node_init() argument 753 __sk_nulls_del_node_init_rcu(struct sock *sk) __sk_nulls_del_node_init_rcu() argument 762 sk_nulls_del_node_init_rcu(struct sock *sk) sk_nulls_del_node_init_rcu() argument 774 __sk_add_node(struct sock *sk, struct hlist_head *list) __sk_add_node() argument 779 sk_add_node(struct sock *sk, struct hlist_head *list) sk_add_node() argument 785 sk_add_node_rcu(struct sock *sk, struct hlist_head *list) sk_add_node_rcu() argument 795 sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list) sk_add_node_tail_rcu() argument 801 __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) __sk_nulls_add_node_rcu() argument 806 __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list) __sk_nulls_add_node_tail_rcu() argument 811 sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) sk_nulls_add_node_rcu() argument 817 __sk_del_bind_node(struct sock *sk) __sk_del_bind_node() argument 822 sk_add_bind_node(struct sock *sk, struct hlist_head *list) sk_add_bind_node() argument 860 sk_user_ns(struct sock *sk) sk_user_ns() argument 910 sock_set_flag(struct sock *sk, enum sock_flags flag) sock_set_flag() argument 915 sock_reset_flag(struct sock *sk, enum sock_flags flag) sock_reset_flag() argument 920 sock_valbool_flag(struct sock *sk, enum sock_flags bit, int valbool) sock_valbool_flag() argument 929 sock_flag(const struct sock *sk, enum sock_flags flag) sock_flag() argument 953 sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask) sk_gfp_mask() argument 958 sk_acceptq_removed(struct sock *sk) sk_acceptq_removed() argument 963 sk_acceptq_added(struct sock *sk) sk_acceptq_added() argument 968 sk_acceptq_is_full(const struct sock *sk) sk_acceptq_is_full() argument 976 sk_stream_min_wspace(const struct sock *sk) sk_stream_min_wspace() argument 981 sk_stream_wspace(const struct sock *sk) sk_stream_wspace() argument 986 sk_wmem_queued_add(struct sock *sk, int val) sk_wmem_queued_add() argument 994 __sk_add_backlog(struct sock *sk, struct sk_buff *skb) __sk_add_backlog() argument 1013 sk_rcvqueues_full(const struct sock *sk, unsigned int limit) sk_rcvqueues_full() argument 1021 sk_add_backlog(struct sock *sk, struct sk_buff *skb, unsigned int limit) sk_add_backlog() argument 1042 sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) sk_backlog_rcv() argument 1050 sk_incoming_cpu_update(struct sock *sk) sk_incoming_cpu_update() argument 1070 sock_rps_record_flow(const struct sock *sk) sock_rps_record_flow() argument 1094 sock_rps_save_rxhash(struct sock *sk, const struct sk_buff *skb) sock_rps_save_rxhash() argument 1106 sock_rps_reset_rxhash(struct sock *sk) sock_rps_reset_rxhash() argument 1141 sk_flush_backlog(struct sock *sk) sk_flush_backlog() argument 1163 sk_prot_clear_nulls(struct sock *sk, int size) sk_prot_clear_nulls() argument 1293 sk_refcnt_debug_inc(struct sock *sk) sk_refcnt_debug_inc() argument 1298 sk_refcnt_debug_dec(struct sock *sk) sk_refcnt_debug_dec() argument 1305 sk_refcnt_debug_release(const struct sock *sk) sk_refcnt_debug_release() argument 1317 __sk_stream_memory_free(const struct sock *sk, int wake) __sk_stream_memory_free() argument 1326 sk_stream_memory_free(const struct sock *sk) sk_stream_memory_free() argument 1331 __sk_stream_is_writeable(const struct sock *sk, int wake) __sk_stream_is_writeable() argument 1337 sk_stream_is_writeable(const struct sock *sk) sk_stream_is_writeable() argument 1342 sk_under_cgroup_hierarchy(struct sock *sk, struct cgroup *ancestor) sk_under_cgroup_hierarchy() argument 1353 sk_has_memory_pressure(const struct sock *sk) sk_has_memory_pressure() argument 1358 sk_under_global_memory_pressure(const struct sock *sk) sk_under_global_memory_pressure() argument 1364 sk_under_memory_pressure(const struct sock *sk) sk_under_memory_pressure() argument 1377 sk_memory_allocated(const struct sock *sk) sk_memory_allocated() argument 1383 sk_memory_allocated_add(struct sock *sk, int amt) sk_memory_allocated_add() argument 1389 sk_memory_allocated_sub(struct sock *sk, int amt) sk_memory_allocated_sub() argument 1394 sk_sockets_allocated_dec(struct sock *sk) sk_sockets_allocated_dec() argument 1399 sk_sockets_allocated_inc(struct sock *sk) sk_sockets_allocated_inc() argument 1405 sk_sockets_allocated_read_positive(struct sock *sk) sk_sockets_allocated_read_positive() argument 1447 __sk_prot_rehash(struct sock *sk) __sk_prot_rehash() argument 1500 sk_prot_mem_limits(const struct sock *sk, int index) sk_prot_mem_limits() argument 1517 sk_has_account(struct sock *sk) sk_has_account() argument 1523 sk_wmem_schedule(struct sock *sk, int size) sk_wmem_schedule() argument 1534 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) sk_rmem_schedule() argument 1545 sk_mem_reclaim(struct sock *sk) sk_mem_reclaim() argument 1553 sk_mem_reclaim_partial(struct sock *sk) sk_mem_reclaim_partial() argument 1561 sk_mem_charge(struct sock *sk, int size) sk_mem_charge() argument 1568 sk_mem_uncharge(struct sock *sk, int size) sk_mem_uncharge() argument 1586 sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) sk_wmem_free_skb() argument 1600 sock_release_ownership(struct sock *sk) sock_release_ownership() argument 1630 lockdep_sock_is_held(const struct sock *sk) lockdep_sock_is_held() argument 1639 lock_sock(struct sock *sk) lock_sock() argument 1663 unlock_sock_fast(struct sock *sk, bool slow) unlock_sock_fast() argument 1685 sock_owned_by_me(const struct sock *sk) sock_owned_by_me() argument 1692 sock_not_owned_by_me(const struct sock *sk) sock_not_owned_by_me() argument 1699 sock_owned_by_user(const struct sock *sk) sock_owned_by_user() argument 1705 sock_owned_by_user_nocheck(const struct sock *sk) sock_owned_by_user_nocheck() argument 1713 struct sock *sk = (struct sock *)csk; sock_allow_reclassification() local 1764 sockcm_init(struct sockcm_cookie *sockc, const struct sock *sk) sockcm_init() argument 1848 sock_put(struct sock *sk) sock_put() argument 1860 sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) sk_receive_skb() argument 1866 sk_tx_queue_set(struct sock *sk, int tx_queue) sk_tx_queue_set() argument 1879 sk_tx_queue_clear(struct sock *sk) sk_tx_queue_clear() argument 1887 sk_tx_queue_get(const struct sock *sk) sk_tx_queue_get() argument 1901 sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) sk_rx_queue_set() argument 1915 sk_rx_queue_clear(struct sock *sk) sk_rx_queue_clear() argument 1923 sk_rx_queue_get(const struct sock *sk) sk_rx_queue_get() argument 1932 sk_set_socket(struct sock *sk, struct socket *sock) sk_set_socket() argument 1937 sk_sleep(struct sock *sk) sk_sleep() argument 1949 sock_orphan(struct sock *sk) sock_orphan() argument 1958 sock_graft(struct sock *sk, struct socket *parent) sock_graft() argument 1974 sock_net_uid(const struct net *net, const struct sock *sk) sock_net_uid() argument 1986 sk_set_txhash(struct sock *sk) sk_set_txhash() argument 1992 sk_rethink_txhash(struct sock *sk) sk_rethink_txhash() argument 2002 __sk_dst_get(struct sock *sk) __sk_dst_get() argument 2009 sk_dst_get(struct sock *sk) sk_dst_get() argument 2021 __dst_negative_advice(struct sock *sk) __dst_negative_advice() argument 2029 dst_negative_advice(struct sock *sk) dst_negative_advice() argument 2036 __sk_dst_set(struct sock *sk, struct dst_entry *dst) __sk_dst_set() argument 2049 sk_dst_set(struct sock *sk, struct dst_entry *dst) sk_dst_set() argument 2060 __sk_dst_reset(struct sock *sk) __sk_dst_reset() argument 2066 sk_dst_reset(struct sock *sk) sk_dst_reset() argument 2075 sk_dst_confirm(struct sock *sk) sk_dst_confirm() argument 2084 struct sock *sk = skb->sk; sock_confirm_neigh() local 2097 sk_can_gso(const struct sock *sk) sk_can_gso() argument 2104 sk_nocaps_add(struct sock *sk, netdev_features_t flags) sk_nocaps_add() argument 2110 skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, char *to, int copy, int offset) skb_do_copy_data_nocache() argument 2128 skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, int copy) skb_add_data_nocache() argument 2141 skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, struct sk_buff *skb, struct page *page, int off, int copy) skb_copy_to_page_nocache() argument 2167 sk_wmem_alloc_get(const struct sock *sk) sk_wmem_alloc_get() argument 2178 sk_rmem_alloc_get(const struct sock *sk) sk_rmem_alloc_get() argument 2189 sk_has_allocations(const struct sock *sk) sk_has_allocations() argument 2252 skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) skb_set_hash_from_sk() argument 2273 skb_set_owner_r(struct sk_buff *skb, struct sock *sk) skb_set_owner_r() argument 2282 skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk) skb_set_owner_sk_safe() argument 2293 skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk) skb_clone_and_charge_r() argument 2327 sock_error(struct sock *sk) sock_error() argument 2341 sock_wspace(struct sock *sk) sock_wspace() argument 2357 sk_set_bit(int nr, struct sock *sk) sk_set_bit() argument 2366 sk_clear_bit(int nr, struct sock *sk) sk_clear_bit() argument 2375 sk_wake_async(const struct sock *sk, int how, int band) sk_wake_async() argument 2394 sk_stream_moderate_sndbuf(struct sock *sk) sk_stream_moderate_sndbuf() argument 2426 sk_page_frag(struct sock *sk) sk_page_frag() argument 2440 sock_writeable(const struct sock *sk) sock_writeable() argument 2450 sock_rcvtimeo(const struct sock *sk, bool noblock) sock_rcvtimeo() argument 2455 sock_sndtimeo(const struct sock *sk, bool noblock) sock_sndtimeo() argument 2460 sock_rcvlowat(const struct sock *sk, int waitall, int len) sock_rcvlowat() argument 2493 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) sock_skb_set_dropcount() argument 2499 sk_drops_add(struct sock *sk, const struct sk_buff *skb) sk_drops_add() argument 2506 sock_read_timestamp(struct sock *sk) sock_read_timestamp() argument 2523 sock_write_timestamp(struct sock *sk, ktime_t kt) sock_write_timestamp() argument 2540 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) sock_recv_timestamp() argument 2568 sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) sock_recv_ts_and_drops() argument 2595 _sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags, __u32 *tskey) _sock_tx_timestamp() argument 2608 sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags) sock_tx_timestamp() argument 2629 sk_eat_skb(struct sock *sk, struct sk_buff *skb) sk_eat_skb() argument 2642 sock_net(const struct sock *sk) sock_net() argument 2648 sock_net_set(struct sock *sk, struct net *net) sock_net_set() argument 2666 sk_fullsock(const struct sock *sk) sk_fullsock() argument 2672 sk_is_refcounted(struct sock *sk) sk_is_refcounted() argument 2687 struct sock *sk = skb->sk; skb_steal_sock() local 2708 struct sock *sk = skb->sk; sk_validate_xmit_skb() local 2727 sk_listener(const struct sock *sk) sk_listener() argument 2765 sk_get_wmem0(const struct sock *sk, const struct proto *proto) sk_get_wmem0() argument 2774 sk_get_rmem0(const struct sock *sk, const struct proto *proto) sk_get_rmem0() argument 2787 sk_pacing_shift_update(struct sock *sk, int val) sk_pacing_shift_update() argument 2799 sk_dev_equal_l3scope(struct sock *sk, int dif) sk_dev_equal_l3scope() argument [all...] |
/kernel/linux/linux-6.6/net/bluetooth/rfcomm/ |
H A D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() local 53 if (!sk) in rfcomm_sk_data_ready() 56 atomic_add(skb->len, &sk->sk_rmem_alloc); in rfcomm_sk_data_ready() 57 skb_queue_tail(&sk->sk_receive_queue, skb); in rfcomm_sk_data_ready() 58 sk->sk_data_ready(sk); in rfcomm_sk_data_ready() 60 if (atomic_read(&sk->sk_rmem_alloc) >= sk in rfcomm_sk_data_ready() 66 struct sock *sk = d->owner, *parent; rfcomm_sk_state_change() local 108 struct sock *sk = NULL; __rfcomm_get_listen_sock_by_addr() local 129 struct sock *sk = NULL, *sk1 = NULL; rfcomm_get_sock_by_channel() local 153 rfcomm_sock_destruct(struct sock *sk) rfcomm_sock_destruct() argument 175 struct sock *sk; rfcomm_sock_cleanup_listen() local 192 rfcomm_sock_kill(struct sock *sk) rfcomm_sock_kill() argument 205 __rfcomm_sock_close(struct sock *sk) __rfcomm_sock_close() argument 232 rfcomm_sock_close(struct sock *sk) rfcomm_sock_close() argument 239 rfcomm_sock_init(struct sock *sk, struct sock *parent) rfcomm_sock_init() argument 275 struct sock *sk; rfcomm_sock_alloc() local 308 struct sock *sk; rfcomm_sock_create() local 330 struct sock *sk = sock->sk; rfcomm_sock_bind() local 377 struct sock *sk = sock->sk; rfcomm_sock_connect() local 424 struct sock *sk = sock->sk; rfcomm_sock_listen() local 475 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local 535 struct sock *sk = sock->sk; rfcomm_sock_getname() local 557 struct sock *sk = sock->sk; rfcomm_sock_sendmsg() local 597 struct sock *sk = sock->sk; rfcomm_sock_recvmsg() local 622 struct sock *sk = sock->sk; rfcomm_sock_setsockopt_old() local 664 struct sock *sk = sock->sk; rfcomm_sock_setsockopt() local 732 struct sock *sk = sock->sk; rfcomm_sock_getsockopt_old() local 807 struct sock *sk = sock->sk; rfcomm_sock_getsockopt() local 892 struct sock *sk = sock->sk; rfcomm_sock_shutdown() local 918 struct sock *sk = sock->sk; rfcomm_sock_release() local 939 struct sock *sk, *parent; rfcomm_connect_ind() local 989 struct sock *sk; rfcomm_sock_debugfs_show() local [all...] |
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/ |
H A D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() local 53 if (!sk) in rfcomm_sk_data_ready() 56 atomic_add(skb->len, &sk->sk_rmem_alloc); in rfcomm_sk_data_ready() 57 skb_queue_tail(&sk->sk_receive_queue, skb); in rfcomm_sk_data_ready() 58 sk->sk_data_ready(sk); in rfcomm_sk_data_ready() 60 if (atomic_read(&sk->sk_rmem_alloc) >= sk in rfcomm_sk_data_ready() 66 struct sock *sk = d->owner, *parent; rfcomm_sk_state_change() local 108 struct sock *sk = NULL; __rfcomm_get_listen_sock_by_addr() local 129 struct sock *sk = NULL, *sk1 = NULL; rfcomm_get_sock_by_channel() local 153 rfcomm_sock_destruct(struct sock *sk) rfcomm_sock_destruct() argument 175 struct sock *sk; rfcomm_sock_cleanup_listen() local 192 rfcomm_sock_kill(struct sock *sk) rfcomm_sock_kill() argument 205 __rfcomm_sock_close(struct sock *sk) __rfcomm_sock_close() argument 232 rfcomm_sock_close(struct sock *sk) rfcomm_sock_close() argument 239 rfcomm_sock_init(struct sock *sk, struct sock *parent) rfcomm_sock_init() argument 274 struct sock *sk; rfcomm_sock_alloc() local 315 struct sock *sk; rfcomm_sock_create() local 337 struct sock *sk = sock->sk; rfcomm_sock_bind() local 384 struct sock *sk = sock->sk; rfcomm_sock_connect() local 426 struct sock *sk = sock->sk; rfcomm_sock_listen() local 477 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local 537 struct sock *sk = sock->sk; rfcomm_sock_getname() local 559 struct sock *sk = sock->sk; rfcomm_sock_sendmsg() local 599 struct sock *sk = sock->sk; rfcomm_sock_recvmsg() local 624 struct sock *sk = sock->sk; rfcomm_sock_setsockopt_old() local 666 struct sock *sk = sock->sk; rfcomm_sock_setsockopt() local 730 struct sock *sk = sock->sk; rfcomm_sock_getsockopt_old() local 805 struct sock *sk = sock->sk; rfcomm_sock_getsockopt() local 890 struct sock *sk = sock->sk; rfcomm_sock_shutdown() local 913 struct sock *sk = sock->sk; rfcomm_sock_release() local 934 struct sock *sk, *parent; rfcomm_connect_ind() local 984 struct sock *sk; rfcomm_sock_debugfs_show() local [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_timer.c | 26 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) in tcp_clamp_rto_to_user_timeout() argument 28 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout() 32 start_ts = tcp_sk(sk)->retrans_stamp; in tcp_clamp_rto_to_user_timeout() 35 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout() 43 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) in tcp_clamp_probe0_to_user_timeout() argument 45 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout() 63 * @sk: The socket the error has appeared on. 68 static void tcp_write_err(struct sock *sk) in tcp_write_err() argument 70 sk->sk_err = sk in tcp_write_err() 102 tcp_out_of_resources(struct sock *sk, bool do_reset) tcp_out_of_resources() argument 144 tcp_orphan_retries(struct sock *sk, bool alive) tcp_orphan_retries() argument 160 tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) tcp_mtu_probing() argument 182 tcp_model_timeout(struct sock *sk, unsigned int boundary, unsigned int rto_base) tcp_model_timeout() argument 209 retransmits_timed_out(struct sock *sk, unsigned int boundary, unsigned int timeout) retransmits_timed_out() argument 231 tcp_write_timeout(struct sock *sk) tcp_write_timeout() argument 290 tcp_delack_timer_handler(struct sock *sk) tcp_delack_timer_handler() argument 341 struct sock *sk = &icsk->icsk_inet.sk; tcp_delack_timer() local 356 tcp_probe_timer(struct sock *sk) tcp_probe_timer() argument 407 tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req) tcp_fastopen_synack_timer() argument 440 tcp_rtx_probe0_timed_out(const struct sock *sk, const struct sk_buff *skb) tcp_rtx_probe0_timed_out() argument 485 tcp_retransmit_timer(struct sock *sk) tcp_retransmit_timer() argument 635 tcp_write_timer_handler(struct sock *sk) tcp_write_timer_handler() argument 677 struct sock *sk = &icsk->icsk_inet.sk; tcp_write_timer() local 699 tcp_set_keepalive(struct sock *sk, int val) tcp_set_keepalive() argument 714 struct sock *sk = from_timer(sk, t, sk_timer); tcp_keepalive_timer() local 802 struct sock *sk = (struct sock *)tp; tcp_compressed_ack_kick() local 826 tcp_init_xmit_timers(struct sock *sk) tcp_init_xmit_timers() argument [all...] |
H A D | inet_hashtables.c | 47 static u32 sk_ehashfn(const struct sock *sk) in sk_ehashfn() argument 50 if (sk->sk_family == AF_INET6 && in sk_ehashfn() 51 !ipv6_addr_v4mapped(&sk->sk_v6_daddr)) in sk_ehashfn() 52 return inet6_ehashfn(sock_net(sk), in sk_ehashfn() 53 &sk->sk_v6_rcv_saddr, sk->sk_num, in sk_ehashfn() 54 &sk->sk_v6_daddr, sk->sk_dport); in sk_ehashfn() 57 if (sk->sk_family == AF_NINET) { in sk_ehashfn() 60 CALL_HCK_LITE_HOOK(nip_ninet_ehashfn_lhck, sk, in sk_ehashfn() 104 inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb, const unsigned short snum) inet_bind_hash() argument 115 __inet_put_port(struct sock *sk) __inet_put_port() argument 132 inet_put_port(struct sock *sk) inet_put_port() argument 140 __inet_inherit_port(const struct sock *sk, struct sock *child) __inet_inherit_port() argument 188 inet_lhash2_bucket_sk(struct inet_hashinfo *h, struct sock *sk) inet_lhash2_bucket_sk() argument 205 inet_hash2(struct inet_hashinfo *h, struct sock *sk) inet_hash2() argument 225 inet_unhash2(struct inet_hashinfo *h, struct sock *sk) inet_unhash2() argument 241 compute_score(struct sock *sk, struct net *net, const unsigned short hnum, const __be32 daddr, const int dif, const int sdif) compute_score() argument 264 lookup_reuseport(struct net *net, struct sock *sk, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport, __be32 daddr, unsigned short hnum) lookup_reuseport() argument 295 struct sock *sk, *result = NULL; inet_lhash2_lookup() local 321 struct sock *sk, *reuse_sk; inet_lookup_run_bpf() local 381 sock_gen_put(struct sock *sk) sock_gen_put() argument 409 struct sock *sk; __inet_lookup_established() local 448 __inet_check_established(struct inet_timewait_death_row *death_row, struct sock *sk, __u16 lport, struct inet_timewait_sock **twp) __inet_check_established() argument 513 inet_sk_port_offset(const struct sock *sk) inet_sk_port_offset() argument 525 inet_ehash_lookup_by_sk(struct sock *sk, struct hlist_nulls_head *list) inet_ehash_lookup_by_sk() argument 565 inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk) inet_ehash_insert() argument 598 inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk) inet_ehash_nolisten() argument 614 inet_reuseport_add_sock(struct sock *sk, struct inet_listen_hashbucket *ilb) inet_reuseport_add_sock() argument 637 __inet_hash(struct sock *sk, struct sock *osk) __inet_hash() argument 674 inet_hash(struct sock *sk) inet_hash() argument 685 __inet_unhash(struct sock *sk, struct inet_listen_hashbucket *ilb) __inet_unhash() argument 702 inet_unhash(struct sock *sk) inet_unhash() argument 742 __inet_hash_connect(struct inet_timewait_death_row *death_row, struct sock *sk, u64 port_offset, int (*check_established)(struct inet_timewait_death_row *, struct sock *, __u16, struct inet_timewait_sock **)) __inet_hash_connect() argument 858 inet_hash_connect(struct inet_timewait_death_row *death_row, struct sock *sk) inet_hash_connect() argument [all...] |
/kernel/linux/linux-5.10/net/netrom/ |
H A D | nr_timer.c | 35 void nr_init_timers(struct sock *sk) in nr_init_timers() argument 37 struct nr_sock *nr = nr_sk(sk); in nr_init_timers() 45 sk->sk_timer.function = nr_heartbeat_expiry; in nr_init_timers() 48 void nr_start_t1timer(struct sock *sk) in nr_start_t1timer() argument 50 struct nr_sock *nr = nr_sk(sk); in nr_start_t1timer() 52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1); in nr_start_t1timer() 55 void nr_start_t2timer(struct sock *sk) in nr_start_t2timer() argument 57 struct nr_sock *nr = nr_sk(sk); in nr_start_t2timer() 59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2); in nr_start_t2timer() 62 void nr_start_t4timer(struct sock *sk) in nr_start_t4timer() argument 69 nr_start_idletimer(struct sock *sk) nr_start_idletimer() argument 77 nr_start_heartbeat(struct sock *sk) nr_start_heartbeat() argument 82 nr_stop_t1timer(struct sock *sk) nr_stop_t1timer() argument 87 nr_stop_t2timer(struct sock *sk) nr_stop_t2timer() argument 92 nr_stop_t4timer(struct sock *sk) nr_stop_t4timer() argument 97 nr_stop_idletimer(struct sock *sk) nr_stop_idletimer() argument 102 nr_stop_heartbeat(struct sock *sk) nr_stop_heartbeat() argument 107 nr_t1timer_running(struct sock *sk) nr_t1timer_running() argument 114 struct sock *sk = from_timer(sk, t, sk_timer); nr_heartbeat_expiry() local 155 struct sock *sk = &nr->sock; nr_t2timer_expiry() local 169 struct sock *sk = &nr->sock; nr_t4timer_expiry() local 180 struct sock *sk = &nr->sock; nr_idletimer_expiry() local 209 struct sock *sk = &nr->sock; nr_t1timer_expiry() local [all...] |
/kernel/linux/linux-6.6/net/netrom/ |
H A D | nr_timer.c | 35 void nr_init_timers(struct sock *sk) in nr_init_timers() argument 37 struct nr_sock *nr = nr_sk(sk); in nr_init_timers() 45 sk->sk_timer.function = nr_heartbeat_expiry; in nr_init_timers() 48 void nr_start_t1timer(struct sock *sk) in nr_start_t1timer() argument 50 struct nr_sock *nr = nr_sk(sk); in nr_start_t1timer() 52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1); in nr_start_t1timer() 55 void nr_start_t2timer(struct sock *sk) in nr_start_t2timer() argument 57 struct nr_sock *nr = nr_sk(sk); in nr_start_t2timer() 59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2); in nr_start_t2timer() 62 void nr_start_t4timer(struct sock *sk) in nr_start_t4timer() argument 69 nr_start_idletimer(struct sock *sk) nr_start_idletimer() argument 77 nr_start_heartbeat(struct sock *sk) nr_start_heartbeat() argument 82 nr_stop_t1timer(struct sock *sk) nr_stop_t1timer() argument 87 nr_stop_t2timer(struct sock *sk) nr_stop_t2timer() argument 92 nr_stop_t4timer(struct sock *sk) nr_stop_t4timer() argument 97 nr_stop_idletimer(struct sock *sk) nr_stop_idletimer() argument 102 nr_stop_heartbeat(struct sock *sk) nr_stop_heartbeat() argument 107 nr_t1timer_running(struct sock *sk) nr_t1timer_running() argument 114 struct sock *sk = from_timer(sk, t, sk_timer); nr_heartbeat_expiry() local 155 struct sock *sk = &nr->sock; nr_t2timer_expiry() local 169 struct sock *sk = &nr->sock; nr_t4timer_expiry() local 180 struct sock *sk = &nr->sock; nr_idletimer_expiry() local 209 struct sock *sk = &nr->sock; nr_t1timer_expiry() local [all...] |
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_timer.c | 26 static u32 tcp_clamp_rto_to_user_timeout(const struct sock *sk) in tcp_clamp_rto_to_user_timeout() argument 28 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_rto_to_user_timeout() 32 start_ts = tcp_sk(sk)->retrans_stamp; in tcp_clamp_rto_to_user_timeout() 36 elapsed = tcp_time_stamp(tcp_sk(sk)) - start_ts; in tcp_clamp_rto_to_user_timeout() 44 u32 tcp_clamp_probe0_to_user_timeout(const struct sock *sk, u32 when) in tcp_clamp_probe0_to_user_timeout() argument 46 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_clamp_probe0_to_user_timeout() 65 * @sk: The socket the error has appeared on. 70 static void tcp_write_err(struct sock *sk) in tcp_write_err() argument 72 WRITE_ONCE(sk->sk_err, READ_ONCE(sk in tcp_write_err() 104 tcp_out_of_resources(struct sock *sk, bool do_reset) tcp_out_of_resources() argument 146 tcp_orphan_retries(struct sock *sk, bool alive) tcp_orphan_retries() argument 162 tcp_mtu_probing(struct inet_connection_sock *icsk, struct sock *sk) tcp_mtu_probing() argument 184 tcp_model_timeout(struct sock *sk, unsigned int boundary, unsigned int rto_base) tcp_model_timeout() argument 211 retransmits_timed_out(struct sock *sk, unsigned int boundary, unsigned int timeout) retransmits_timed_out() argument 233 tcp_write_timeout(struct sock *sk) tcp_write_timeout() argument 298 tcp_delack_timer_handler(struct sock *sk) tcp_delack_timer_handler() argument 353 struct sock *sk = &icsk->icsk_inet.sk; tcp_delack_timer() local 368 tcp_probe_timer(struct sock *sk) tcp_probe_timer() argument 422 tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req) tcp_fastopen_synack_timer() argument 457 tcp_rtx_probe0_timed_out(const struct sock *sk, const struct sk_buff *skb) tcp_rtx_probe0_timed_out() argument 485 tcp_retransmit_timer(struct sock *sk) tcp_retransmit_timer() argument 642 tcp_write_timer_handler(struct sock *sk) tcp_write_timer_handler() argument 681 struct sock *sk = &icsk->icsk_inet.sk; tcp_write_timer() local 703 tcp_set_keepalive(struct sock *sk, int val) tcp_set_keepalive() argument 718 struct sock *sk = from_timer(sk, t, sk_timer); tcp_keepalive_timer() local 806 struct sock *sk = (struct sock *)tp; tcp_compressed_ack_kick() local 830 tcp_init_xmit_timers(struct sock *sk) tcp_init_xmit_timers() argument [all...] |
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | iso.c | 30 struct sock *sk; member 42 static void iso_sock_close(struct sock *sk); 43 static void iso_sock_kill(struct sock *sk); 46 #define iso_pi(sk) ((struct iso_pinfo *)sk) 80 static bool iso_match_sid(struct sock *sk, void *data); 81 static bool iso_match_sync_handle(struct sock *sk, void *data); 82 static void iso_sock_disconn(struct sock *sk); 84 typedef bool (*iso_sock_match_t)(struct sock *sk, void *data); 97 struct sock *sk; in iso_sock_timeout() local 117 iso_sock_set_timer(struct sock *sk, long timeout) iso_sock_set_timer() argument 127 iso_sock_clear_timer(struct sock *sk) iso_sock_clear_timer() argument 164 iso_chan_del(struct sock *sk, int err) iso_chan_del() argument 197 iso_match_conn_sync_handle(struct sock *sk, void *data) iso_match_conn_sync_handle() argument 210 struct sock *sk; iso_conn_del() local 259 __iso_chan_add(struct iso_conn *conn, struct sock *sk, struct sock *parent) __iso_chan_add() argument 281 iso_chan_add(struct iso_conn *conn, struct sock *sk, struct sock *parent) iso_chan_add() argument 301 iso_connect_bis(struct sock *sk) iso_connect_bis() argument 392 iso_connect_cis(struct sock *sk) iso_connect_cis() argument 482 iso_sock_get_qos(struct sock *sk) iso_sock_get_qos() argument 490 iso_send_frame(struct sock *sk, struct sk_buff *skb) iso_send_frame() argument 520 struct sock *sk; iso_recv_frame() local 544 struct sock *sk; __iso_get_sock_listen_by_addr() local 563 struct sock *sk; __iso_get_sock_listen_by_sid() local 592 struct sock *sk = NULL, *sk1 = NULL; iso_get_sock_listen() local 622 iso_sock_destruct(struct sock *sk) iso_sock_destruct() argument 632 struct sock *sk; iso_sock_cleanup_listen() local 658 iso_sock_kill(struct sock *sk) iso_sock_kill() argument 672 iso_sock_disconn(struct sock *sk) iso_sock_disconn() argument 682 __iso_sock_close(struct sock *sk) __iso_sock_close() argument 719 iso_sock_close(struct sock *sk) iso_sock_close() argument 728 iso_sock_init(struct sock *sk, struct sock *parent) iso_sock_init() argument 777 struct sock *sk; iso_sock_alloc() local 798 struct sock *sk; iso_sock_create() local 821 struct sock *sk = sock->sk; iso_sock_bind_bc() local 853 struct sock *sk = sock->sk; iso_sock_bind() local 901 struct sock *sk = sock->sk; iso_sock_connect() local 946 iso_listen_bis(struct sock *sk) iso_listen_bis() argument 985 iso_listen_cis(struct sock *sk) iso_listen_cis() argument 1003 struct sock *sk = sock->sk; iso_sock_listen() local 1042 struct sock *sk = sock->sk, *ch; iso_sock_accept() local 1097 struct sock *sk = sock->sk; iso_sock_getname() local 1117 struct sock *sk = sock->sk; iso_sock_sendmsg() local 1201 iso_conn_big_sync(struct sock *sk) iso_conn_big_sync() argument 1227 struct sock *sk = sock->sk; iso_sock_recvmsg() local 1346 struct sock *sk = sock->sk; iso_sock_setsockopt() local 1444 struct sock *sk = sock->sk; iso_sock_getsockopt() local 1512 struct sock *sk = sock->sk; iso_sock_shutdown() local 1557 struct sock *sk = sock->sk; iso_sock_release() local 1579 iso_sock_ready(struct sock *sk) iso_sock_ready() argument 1598 iso_match_big(struct sock *sk, void *data) iso_match_big() argument 1605 iso_match_pa_sync_flag(struct sock *sk, void *data) iso_match_pa_sync_flag() argument 1613 struct sock *sk = conn->sk; iso_conn_ready() local 1731 iso_match_sid(struct sock *sk, void *data) iso_match_sid() argument 1738 iso_match_sync_handle(struct sock *sk, void *data) iso_match_sync_handle() argument 1745 iso_match_sync_handle_pa_report(struct sock *sk, void *data) iso_match_sync_handle_pa_report() argument 1759 struct sock *sk; iso_connect_ind() local 2041 struct sock *sk; iso_debugfs_show() local [all...] |
H A D | sco.c | 49 struct sock *sk; member 59 static void sco_sock_close(struct sock *sk); 60 static void sco_sock_kill(struct sock *sk); 63 #define sco_pi(sk) ((struct sco_pinfo *) sk) 83 struct sock *sk; in sco_sock_timeout() local 86 sk = conn->sk; in sco_sock_timeout() 87 if (sk) in sco_sock_timeout() 88 sock_hold(sk); in sco_sock_timeout() 103 sco_sock_set_timer(struct sock *sk, long timeout) sco_sock_set_timer() argument 113 sco_sock_clear_timer(struct sock *sk) sco_sock_clear_timer() argument 156 sco_chan_del(struct sock *sk, int err) sco_chan_del() argument 184 struct sock *sk; sco_conn_del() local 213 __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) __sco_chan_add() argument 225 sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) sco_chan_add() argument 240 sco_connect(struct sock *sk) sco_connect() argument 307 sco_send_frame(struct sock *sk, struct sk_buff *skb) sco_send_frame() argument 325 struct sock *sk; sco_recv_frame() local 349 struct sock *sk; __sco_get_sock_listen_by_addr() local 367 struct sock *sk = NULL, *sk1 = NULL; sco_get_sock_listen() local 389 sco_sock_destruct(struct sock *sk) sco_sock_destruct() argument 399 struct sock *sk; sco_sock_cleanup_listen() local 416 sco_sock_kill(struct sock *sk) sco_sock_kill() argument 429 __sco_sock_close(struct sock *sk) __sco_sock_close() argument 465 sco_sock_close(struct sock *sk) sco_sock_close() argument 473 sco_sock_init(struct sock *sk, struct sock *parent) sco_sock_init() argument 493 struct sock *sk; sco_sock_alloc() local 515 struct sock *sk; sco_sock_create() local 538 struct sock *sk = sock->sk; sco_sock_bind() local 571 struct sock *sk = sock->sk; sco_sock_connect() local 606 struct sock *sk = sock->sk; sco_sock_listen() local 648 struct sock *sk = sock->sk, *ch; sco_sock_accept() local 703 struct sock *sk = sock->sk; sco_sock_getname() local 720 struct sock *sk = sock->sk; sco_sock_sendmsg() local 803 struct sock *sk = sock->sk; sco_sock_recvmsg() local 825 struct sock *sk = sock->sk; sco_sock_setsockopt() local 966 struct sock *sk = sock->sk; sco_sock_getsockopt_old() local 1027 struct sock *sk = sock->sk; sco_sock_getsockopt() local 1208 struct sock *sk = sock->sk; sco_sock_shutdown() local 1238 struct sock *sk = sock->sk; sco_sock_release() local 1263 struct sock *sk = conn->sk; sco_conn_ready() local 1322 struct sock *sk; sco_connect_ind() local 1400 struct sock *sk; sco_debugfs_show() local [all...] |
H A D | af_bluetooth.c | 71 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock() argument 73 BUG_ON(!sk); in bt_sock_reclassify_lock() 74 BUG_ON(!sock_allow_reclassification(sk)); in bt_sock_reclassify_lock() 76 sock_lock_init_class_and_name(sk, in bt_sock_reclassify_lock() 134 bt_sock_reclassify_lock(sock->sk, proto); in bt_sock_create() 146 struct sock *sk; in bt_sock_alloc() local 148 sk = sk_alloc(net, PF_BLUETOOTH, prio, prot, kern); in bt_sock_alloc() 149 if (!sk) in bt_sock_alloc() 152 sock_init_data(sock, sk); in bt_sock_alloc() 153 INIT_LIST_HEAD(&bt_sk(sk) in bt_sock_alloc() 172 bt_sock_link(struct bt_sock_list *l, struct sock *sk) bt_sock_link() argument 180 bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) bt_sock_unlink() argument 188 bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh) bt_accept_enqueue() argument 230 bt_accept_unlink(struct sock *sk) bt_accept_unlink() argument 244 struct sock *sk; bt_accept_dequeue() local 301 struct sock *sk = sock->sk; bt_sock_recvmsg() local 353 bt_sock_data_wait(struct sock *sk, long timeo) bt_sock_data_wait() argument 385 struct sock *sk = sock->sk; bt_sock_stream_recvmsg() local 490 struct sock *sk; bt_accept_poll() local 506 struct sock *sk = sock->sk; bt_sock_poll() local 546 struct sock *sk = sock->sk; bt_sock_ioctl() local 586 bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo) bt_sock_wait_state() argument 622 bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags) bt_sock_wait_ready() argument 700 struct sock *sk = sk_entry(v); bt_seq_show() local [all...] |
/kernel/linux/linux-6.6/include/net/ |
H A D | sock.h | 82 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ 87 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() argument 273 * @sk_napi_id: id of the last napi context to receive data for sk 529 void (*sk_state_change)(struct sock *sk); 530 void (*sk_data_ready)(struct sock *sk); 531 void (*sk_write_space)(struct sock *sk); 532 void (*sk_error_report)(struct sock *sk); 533 int (*sk_backlog_rcv)(struct sock *sk, 581 sk_user_data_is_nocopy(const struct sock *sk) sk_user_data_is_nocopy() argument 599 __locked_read_sk_user_data_with_flags(const struct sock *sk, uintptr_t flags) __locked_read_sk_user_data_with_flags() argument 622 __rcu_dereference_sk_user_data_with_flags(const struct sock *sk, uintptr_t flags) __rcu_dereference_sk_user_data_with_flags() argument 649 sock_net(const struct sock *sk) sock_net() argument 655 sock_net_set(struct sock *sk, struct net *net) sock_net_set() argument 673 sk_peek_offset(const struct sock *sk, int flags) sk_peek_offset() argument 682 sk_peek_offset_bwd(struct sock *sk, int val) sk_peek_offset_bwd() argument 692 sk_peek_offset_fwd(struct sock *sk, int val) sk_peek_offset_fwd() argument 725 sk_next(const struct sock *sk) sk_next() argument 730 sk_nulls_next(const struct sock *sk) sk_nulls_next() argument 738 sk_unhashed(const struct sock *sk) sk_unhashed() argument 743 sk_hashed(const struct sock *sk) sk_hashed() argument 753 __sk_del_node(struct sock *sk) __sk_del_node() argument 759 __sk_del_node_init(struct sock *sk) __sk_del_node_init() argument 775 sock_hold(struct sock *sk) sock_hold() argument 783 __sock_put(struct sock *sk) __sock_put() argument 788 sk_del_node_init(struct sock *sk) sk_del_node_init() argument 801 __sk_nulls_del_node_init_rcu(struct sock *sk) __sk_nulls_del_node_init_rcu() argument 810 sk_nulls_del_node_init_rcu(struct sock *sk) sk_nulls_del_node_init_rcu() argument 822 __sk_add_node(struct sock *sk, struct hlist_head *list) __sk_add_node() argument 827 sk_add_node(struct sock *sk, struct hlist_head *list) sk_add_node() argument 833 sk_add_node_rcu(struct sock *sk, struct hlist_head *list) sk_add_node_rcu() argument 843 sk_add_node_tail_rcu(struct sock *sk, struct hlist_head *list) sk_add_node_tail_rcu() argument 849 __sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) __sk_nulls_add_node_rcu() argument 854 __sk_nulls_add_node_tail_rcu(struct sock *sk, struct hlist_nulls_head *list) __sk_nulls_add_node_tail_rcu() argument 859 sk_nulls_add_node_rcu(struct sock *sk, struct hlist_nulls_head *list) sk_nulls_add_node_rcu() argument 865 __sk_del_bind_node(struct sock *sk) __sk_del_bind_node() argument 870 sk_add_bind_node(struct sock *sk, struct hlist_head *list) sk_add_bind_node() argument 876 __sk_del_bind2_node(struct sock *sk) __sk_del_bind2_node() argument 881 sk_add_bind2_node(struct sock *sk, struct hlist_head *list) sk_add_bind2_node() argument 920 sk_user_ns(const struct sock *sk) sk_user_ns() argument 971 sock_set_flag(struct sock *sk, enum sock_flags flag) sock_set_flag() argument 976 sock_reset_flag(struct sock *sk, enum sock_flags flag) sock_reset_flag() argument 981 sock_valbool_flag(struct sock *sk, enum sock_flags bit, int valbool) sock_valbool_flag() argument 990 sock_flag(const struct sock *sk, enum sock_flags flag) sock_flag() argument 1014 sk_gfp_mask(const struct sock *sk, gfp_t gfp_mask) sk_gfp_mask() argument 1019 sk_acceptq_removed(struct sock *sk) sk_acceptq_removed() argument 1024 sk_acceptq_added(struct sock *sk) sk_acceptq_added() argument 1033 sk_acceptq_is_full(const struct sock *sk) sk_acceptq_is_full() argument 1041 sk_stream_min_wspace(const struct sock *sk) sk_stream_min_wspace() argument 1046 sk_stream_wspace(const struct sock *sk) sk_stream_wspace() argument 1051 sk_wmem_queued_add(struct sock *sk, int val) sk_wmem_queued_add() argument 1056 sk_forward_alloc_add(struct sock *sk, int val) sk_forward_alloc_add() argument 1065 __sk_add_backlog(struct sock *sk, struct sk_buff *skb) __sk_add_backlog() argument 1084 sk_rcvqueues_full(const struct sock *sk, unsigned int limit) sk_rcvqueues_full() argument 1092 sk_add_backlog(struct sock *sk, struct sk_buff *skb, unsigned int limit) sk_add_backlog() argument 1116 sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) sk_backlog_rcv() argument 1127 sk_incoming_cpu_update(struct sock *sk) sk_incoming_cpu_update() argument 1147 sock_rps_record_flow(const struct sock *sk) sock_rps_record_flow() argument 1171 sock_rps_save_rxhash(struct sock *sk, const struct sk_buff *skb) sock_rps_save_rxhash() argument 1183 sock_rps_reset_rxhash(struct sock *sk) sock_rps_reset_rxhash() argument 1216 sk_flush_backlog(struct sock *sk) sk_flush_backlog() argument 1239 sk_prot_clear_nulls(struct sock *sk, int size) sk_prot_clear_nulls() argument 1378 sk_forward_alloc_get(const struct sock *sk) sk_forward_alloc_get() argument 1387 __sk_stream_memory_free(const struct sock *sk, int wake) __sk_stream_memory_free() argument 1397 sk_stream_memory_free(const struct sock *sk) sk_stream_memory_free() argument 1402 __sk_stream_is_writeable(const struct sock *sk, int wake) __sk_stream_is_writeable() argument 1408 sk_stream_is_writeable(const struct sock *sk) sk_stream_is_writeable() argument 1413 sk_under_cgroup_hierarchy(struct sock *sk, struct cgroup *ancestor) sk_under_cgroup_hierarchy() argument 1424 sk_has_memory_pressure(const struct sock *sk) sk_has_memory_pressure() argument 1429 sk_under_global_memory_pressure(const struct sock *sk) sk_under_global_memory_pressure() argument 1435 sk_under_memory_pressure(const struct sock *sk) sk_under_memory_pressure() argument 1454 sk_memory_allocated(const struct sock *sk) sk_memory_allocated() argument 1463 sk_memory_allocated_add(struct sock *sk, int amt) sk_memory_allocated_add() argument 1477 sk_memory_allocated_sub(struct sock *sk, int amt) sk_memory_allocated_sub() argument 1492 sk_sockets_allocated_dec(struct sock *sk) sk_sockets_allocated_dec() argument 1498 sk_sockets_allocated_inc(struct sock *sk) sk_sockets_allocated_inc() argument 1505 sk_sockets_allocated_read_positive(struct sock *sk) sk_sockets_allocated_read_positive() argument 1560 __sk_prot_rehash(struct sock *sk) __sk_prot_rehash() argument 1606 sk_prot_mem_limits(const struct sock *sk, int index) sk_prot_mem_limits() argument 1616 sk_has_account(struct sock *sk) sk_has_account() argument 1622 sk_wmem_schedule(struct sock *sk, int size) sk_wmem_schedule() argument 1633 sk_rmem_schedule(struct sock *sk, struct sk_buff *skb, int size) sk_rmem_schedule() argument 1644 sk_unused_reserved_mem(const struct sock *sk) sk_unused_reserved_mem() argument 1657 sk_mem_reclaim(struct sock *sk) sk_mem_reclaim() argument 1670 sk_mem_reclaim_final(struct sock *sk) sk_mem_reclaim_final() argument 1676 sk_mem_charge(struct sock *sk, int size) sk_mem_charge() argument 1683 sk_mem_uncharge(struct sock *sk, int size) sk_mem_uncharge() argument 1710 lockdep_sock_is_held(const struct sock *sk) lockdep_sock_is_held() argument 1718 lock_sock(struct sock *sk) lock_sock() argument 1749 lock_sock_fast(struct sock *sk) lock_sock_fast() argument 1758 lock_sock_fast_nested(struct sock *sk) lock_sock_fast_nested() argument 1777 release_sock(sk); global() variable 1804 sock_owned_by_me(const struct sock *sk) sock_owned_by_me() argument 1811 sock_owned_by_user(const struct sock *sk) sock_owned_by_user() argument 1817 sock_owned_by_user_nocheck(const struct sock *sk) sock_owned_by_user_nocheck() argument 1822 sock_release_ownership(struct sock *sk) sock_release_ownership() argument 1835 struct sock *sk = (struct sock *)csk; sock_allow_reclassification() local 1879 sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) sock_alloc_send_skb() argument 1891 sock_replace_proto(struct sock *sk, struct proto *proto) sock_replace_proto() argument 1904 sockcm_init(struct sockcm_cookie *sockc, const struct sock *sk) sockcm_init() argument 1986 sock_put(struct sock *sk) sock_put() argument 1998 sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested) sk_receive_skb() argument 2004 sk_tx_queue_set(struct sock *sk, int tx_queue) sk_tx_queue_set() argument 2017 sk_tx_queue_clear(struct sock *sk) sk_tx_queue_clear() argument 2025 sk_tx_queue_get(const struct sock *sk) sk_tx_queue_get() argument 2039 __sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb, bool force_set) __sk_rx_queue_set() argument 2054 sk_rx_queue_set(struct sock *sk, const struct sk_buff *skb) sk_rx_queue_set() argument 2059 sk_rx_queue_update(struct sock *sk, const struct sk_buff *skb) sk_rx_queue_update() argument 2064 sk_rx_queue_clear(struct sock *sk) sk_rx_queue_clear() argument 2071 sk_rx_queue_get(const struct sock *sk) sk_rx_queue_get() argument 2085 sk_set_socket(struct sock *sk, struct socket *sock) sk_set_socket() argument 2090 sk_sleep(struct sock *sk) sk_sleep() argument 2102 sock_orphan(struct sock *sk) sock_orphan() argument 2111 sock_graft(struct sock *sk, struct socket *parent) sock_graft() argument 2127 sock_net_uid(const struct net *net, const struct sock *sk) sock_net_uid() argument 2139 sk_set_txhash(struct sock *sk) sk_set_txhash() argument 2145 sk_rethink_txhash(struct sock *sk) sk_rethink_txhash() argument 2155 __sk_dst_get(const struct sock *sk) __sk_dst_get() argument 2162 sk_dst_get(const struct sock *sk) sk_dst_get() argument 2174 __dst_negative_advice(struct sock *sk) __dst_negative_advice() argument 2189 dst_negative_advice(struct sock *sk) dst_negative_advice() argument 2196 __sk_dst_set(struct sock *sk, struct dst_entry *dst) __sk_dst_set() argument 2209 sk_dst_set(struct sock *sk, struct dst_entry *dst) sk_dst_set() argument 2220 __sk_dst_reset(struct sock *sk) __sk_dst_reset() argument 2226 sk_dst_reset(struct sock *sk) sk_dst_reset() argument 2235 sk_dst_confirm(struct sock *sk) sk_dst_confirm() argument 2244 struct sock *sk = skb->sk; sock_confirm_neigh() local 2254 sk_can_gso(const struct sock *sk) sk_can_gso() argument 2261 sk_gso_disable(struct sock *sk) sk_gso_disable() argument 2267 skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, char *to, int copy, int offset) skb_do_copy_data_nocache() argument 2285 skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, int copy) skb_add_data_nocache() argument 2298 skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, struct sk_buff *skb, struct page *page, int off, int copy) skb_copy_to_page_nocache() argument 2322 sk_wmem_alloc_get(const struct sock *sk) sk_wmem_alloc_get() argument 2333 sk_rmem_alloc_get(const struct sock *sk) sk_rmem_alloc_get() argument 2344 sk_has_allocations(const struct sock *sk) sk_has_allocations() argument 2407 skb_set_hash_from_sk(struct sk_buff *skb, struct sock *sk) skb_set_hash_from_sk() argument 2428 skb_set_owner_r(struct sk_buff *skb, struct sock *sk) skb_set_owner_r() argument 2437 skb_set_owner_sk_safe(struct sk_buff *skb, struct sock *sk) skb_set_owner_sk_safe() argument 2448 skb_clone_and_charge_r(struct sk_buff *skb, struct sock *sk) skb_clone_and_charge_r() argument 2486 sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) sock_queue_rcv_skb() argument 2498 sock_error(struct sock *sk) sock_error() argument 2514 sock_wspace(struct sock *sk) sock_wspace() argument 2530 sk_set_bit(int nr, struct sock *sk) sk_set_bit() argument 2539 sk_clear_bit(int nr, struct sock *sk) sk_clear_bit() argument 2548 sk_wake_async(const struct sock *sk, int how, int band) sk_wake_async() argument 2567 sk_stream_moderate_sndbuf(struct sock *sk) sk_stream_moderate_sndbuf() argument 2596 sk_page_frag(struct sock *sk) sk_page_frag() argument 2609 sock_writeable(const struct sock *sk) sock_writeable() argument 2624 sock_rcvtimeo(const struct sock *sk, bool noblock) sock_rcvtimeo() argument 2629 sock_sndtimeo(const struct sock *sk, bool noblock) sock_sndtimeo() argument 2634 sock_rcvlowat(const struct sock *sk, int waitall, int len) sock_rcvlowat() argument 2667 sock_skb_set_dropcount(const struct sock *sk, struct sk_buff *skb) sock_skb_set_dropcount() argument 2673 sk_drops_add(struct sock *sk, const struct sk_buff *skb) sk_drops_add() argument 2680 sock_read_timestamp(struct sock *sk) sock_read_timestamp() argument 2697 sock_write_timestamp(struct sock *sk, ktime_t kt) sock_write_timestamp() argument 2714 sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) sock_recv_timestamp() argument 2742 sock_recv_cmsgs(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) sock_recv_cmsgs() argument 2771 _sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags, __u32 *tskey) _sock_tx_timestamp() argument 2784 sock_tx_timestamp(struct sock *sk, __u16 tsflags, __u8 *tx_flags) sock_tx_timestamp() argument 2796 sk_is_inet(const struct sock *sk) sk_is_inet() argument 2803 sk_is_tcp(const struct sock *sk) sk_is_tcp() argument 2810 sk_is_udp(const struct sock *sk) sk_is_udp() argument 2817 sk_is_stream_unix(const struct sock *sk) sk_is_stream_unix() argument 2830 sk_eat_skb(struct sock *sk, struct sk_buff *skb) sk_eat_skb() argument 2849 sk_fullsock(const struct sock *sk) sk_fullsock() argument 2855 sk_is_refcounted(struct sock *sk) sk_is_refcounted() argument 2871 struct sock *sk = skb->sk; skb_steal_sock() local 2894 struct sock *sk = skb->sk; sk_validate_xmit_skb() local 2913 sk_listener(const struct sock *sk) sk_listener() argument 2951 sk_get_wmem0(const struct sock *sk, const struct proto *proto) sk_get_wmem0() argument 2960 sk_get_rmem0(const struct sock *sk, const struct proto *proto) sk_get_rmem0() argument 2973 sk_pacing_shift_update(struct sock *sk, int val) sk_pacing_shift_update() argument 2985 sk_dev_equal_l3scope(struct sock *sk, int dif) sk_dev_equal_l3scope() argument 3026 sk_is_readable(struct sock *sk) sk_is_readable() argument [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip_timer.c | 32 * @sk: Pointer to the current socket. 35 static int tcp_nip_orphan_retries(struct sock *sk, bool alive) in tcp_nip_orphan_retries() argument 37 int retries = sock_net(sk)->ipv4.sysctl_tcp_orphan_retries; /* May be zero. */ in tcp_nip_orphan_retries() 40 if (sk->sk_err_soft && !alive) in tcp_nip_orphan_retries() 52 void tcp_nip_delack_timer_handler(struct sock *sk) in tcp_nip_delack_timer_handler() argument 54 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_nip_delack_timer_handler() 56 if (((1 << sk->sk_state) & (TCPF_CLOSE | TCPF_LISTEN)) || in tcp_nip_delack_timer_handler() 61 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in tcp_nip_delack_timer_handler() 66 if (inet_csk_ack_scheduled(sk)) { in tcp_nip_delack_timer_handler() 68 tcp_mstamp_refresh(tcp_sk(sk)); in tcp_nip_delack_timer_handler() 76 tcp_nip_write_err(struct sock *sk) tcp_nip_write_err() argument 89 struct sock *sk = &icsk->icsk_inet.sk; tcp_nip_delack_timer() local 104 retransmits_nip_timed_out(struct sock *sk, unsigned int boundary, unsigned int timeout, bool syn_set) retransmits_nip_timed_out() argument 118 tcp_nip_write_timeout(struct sock *sk) tcp_nip_write_timeout() argument 147 tcp_nip_retransmit_timer(struct sock *sk) tcp_nip_retransmit_timer() argument 216 tcp_nip_probe_timer(struct sock *sk) tcp_nip_probe_timer() argument 265 tcp_nip_write_timer_handler(struct sock *sk) tcp_nip_write_timer_handler() argument 298 struct sock *sk = &icsk->icsk_inet.sk; tcp_nip_write_timer() local 312 tcp_nip_keepalive_is_timeout(struct sock *sk, u32 elapsed) tcp_nip_keepalive_is_timeout() argument 342 struct sock *sk = from_timer(sk, t, sk_timer); tcp_nip_keepalive_timer() local 415 tcp_nip_init_xmit_timers(struct sock *sk) tcp_nip_init_xmit_timers() argument 421 tcp_nip_clear_xmit_timers(struct sock *sk) tcp_nip_clear_xmit_timers() argument [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | sock.c | 51 * Anonymous : inet_create tidied up (sk->reuse setting) 52 * Alan Cox : inet sockets don't set sk->type! 154 static void sock_def_write_space_wfree(struct sock *sk); 155 static void sock_def_write_space(struct sock *sk); 159 * @sk: Socket to use a capability on or through 167 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() argument 170 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable() 177 * @sk: Socket to use a capability on or through 184 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument 186 return sk_ns_capable(sk, in sk_capable() 199 sk_net_capable(const struct sock *sk, int cap) sk_net_capable() argument 304 sk_set_memalloc(struct sock *sk) sk_set_memalloc() argument 312 sk_clear_memalloc(struct sock *sk) sk_clear_memalloc() argument 329 __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) __sk_backlog_rcv() argument 348 sk_error_report(struct sock *sk) sk_error_report() argument 461 sock_needs_netstamp(const struct sock *sk) sock_needs_netstamp() argument 472 sock_disable_timestamp(struct sock *sk, unsigned long flags) sock_disable_timestamp() argument 483 __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) __sock_queue_rcv_skb() argument 518 sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb, enum skb_drop_reason *reason) sock_queue_rcv_skb_reason() argument 548 __sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested, unsigned int trim_cap, bool refcounted) __sk_receive_skb() argument 596 __sk_dst_check(struct sock *sk, u32 cookie) __sk_dst_check() argument 614 sk_dst_check(struct sock *sk, u32 cookie) sk_dst_check() argument 630 sock_bindtoindex_locked(struct sock *sk, int ifindex) sock_bindtoindex_locked() argument 660 sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk) sock_bindtoindex() argument 674 sock_setbindtodevice(struct sock *sk, sockptr_t optval, int optlen) sock_setbindtodevice() argument 722 sock_getbindtodevice(struct sock *sk, sockptr_t optval, sockptr_t optlen, int len) sock_getbindtodevice() argument 763 sk_mc_loop(struct sock *sk) sk_mc_loop() argument 783 sock_set_reuseaddr(struct sock *sk) sock_set_reuseaddr() argument 791 sock_set_reuseport(struct sock *sk) sock_set_reuseport() argument 799 sock_no_linger(struct sock *sk) sock_no_linger() argument 808 sock_set_priority(struct sock *sk, u32 priority) sock_set_priority() argument 816 sock_set_sndtimeo(struct sock *sk, s64 secs) sock_set_sndtimeo() argument 827 __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns) __sock_set_timestamps() argument 840 sock_enable_timestamps(struct sock *sk) sock_enable_timestamps() argument 848 sock_set_timestamp(struct sock *sk, int optname, bool valbool) sock_set_timestamp() argument 866 sock_timestamping_bind_phc(struct sock *sk, int phc_index) sock_timestamping_bind_phc() argument 903 sock_set_timestamping(struct sock *sk, int optname, struct so_timestamping timestamping) sock_set_timestamping() argument 953 sock_set_keepalive(struct sock *sk) sock_set_keepalive() argument 963 __sock_set_rcvbuf(struct sock *sk, int val) __sock_set_rcvbuf() argument 984 sock_set_rcvbuf(struct sock *sk, int val) sock_set_rcvbuf() argument 992 __sock_set_mark(struct sock *sk, u32 val) __sock_set_mark() argument 1000 sock_set_mark(struct sock *sk, u32 val) sock_set_mark() argument 1008 sock_release_reserved_memory(struct sock *sk, int bytes) sock_release_reserved_memory() argument 1018 sock_reserve_memory(struct sock *sk, int bytes) sock_reserve_memory() argument 1057 sockopt_lock_sock(struct sock *sk) sockopt_lock_sock() argument 1070 sockopt_release_sock(struct sock *sk) sockopt_release_sock() argument 1096 sk_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) sk_setsockopt() argument 1565 sk_get_peer_cred(struct sock *sk) sk_get_peer_cred() argument 1604 sk_getsockopt(struct sock *sk, int level, int optname, sockptr_t optval, sockptr_t optlen) sk_getsockopt() argument 2034 sock_lock_init(struct sock *sk) sock_lock_init() argument 2087 struct sock *sk; sk_prot_alloc() local 2120 sk_prot_free(struct proto *prot, struct sock *sk) sk_prot_free() argument 2149 struct sock *sk; sk_alloc() local 2189 struct sock *sk = container_of(head, struct sock, sk_rcu); __sk_destruct() local 2229 sk_destruct(struct sock *sk) sk_destruct() argument 2244 __sk_free(struct sock *sk) __sk_free() argument 2255 sk_free(struct sock *sk) sk_free() argument 2267 sk_init_common(struct sock *sk) sk_init_common() argument 2295 sk_clone_lock(const struct sock *sk, const gfp_t priority) sk_clone_lock() argument 2415 sk_free_unlock_clone(struct sock *sk) sk_free_unlock_clone() argument 2425 sk_dst_gso_max_size(struct sock *sk, struct dst_entry *dst) sk_dst_gso_max_size() argument 2443 sk_setup_caps(struct sock *sk, struct dst_entry *dst) sk_setup_caps() argument 2479 struct sock *sk = skb->sk; sock_wfree() local 2517 struct sock *sk = skb->sk; __sock_wfree() local 2523 skb_set_owner_w(struct sk_buff *skb, struct sock *sk) skb_set_owner_w() argument 2581 struct sock *sk = skb->sk; sock_rfree() local 2611 sock_i_uid(struct sock *sk) sock_i_uid() argument 2622 __sock_i_ino(struct sock *sk) __sock_i_ino() argument 2633 sock_i_ino(struct sock *sk) sock_i_ino() argument 2647 sock_wmalloc(struct sock *sk, unsigned long size, int force, gfp_t priority) sock_wmalloc() argument 2665 struct sock *sk = skb->sk; sock_ofree() local 2670 sock_omalloc(struct sock *sk, unsigned long size, gfp_t priority) sock_omalloc() argument 2693 sock_kmalloc(struct sock *sk, int size, gfp_t priority) sock_kmalloc() argument 2717 __sock_kfree_s(struct sock *sk, void *mem, int size, const bool nullify) __sock_kfree_s() argument 2729 sock_kfree_s(struct sock *sk, void *mem, int size) sock_kfree_s() argument 2735 sock_kzfree_s(struct sock *sk, void *mem, int size) sock_kzfree_s() argument 2744 sock_wait_for_wmem(struct sock *sk, long timeo) sock_wait_for_wmem() argument 2773 sock_alloc_send_pskb(struct sock *sk, unsigned long header_len, unsigned long data_len, int noblock, int *errcode, int max_page_order) sock_alloc_send_pskb() argument 2817 __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg, struct sockcm_cookie *sockc) __sock_cmsg_send() argument 2861 sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct sockcm_cookie *sockc) sock_cmsg_send() argument 2880 sk_enter_memory_pressure(struct sock *sk) sk_enter_memory_pressure() argument 2888 sk_leave_memory_pressure(struct sock *sk) sk_leave_memory_pressure() argument 2947 sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag) sk_page_frag_refill() argument 3009 __sk_flush_backlog(struct sock *sk) __sk_flush_backlog() argument 3028 sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb) sk_wait_data() argument 3051 __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) __sk_mem_raise_allocated() argument 3147 __sk_mem_schedule(struct sock *sk, int size, int kind) __sk_mem_schedule() argument 3166 __sk_mem_reduce_allocated(struct sock *sk, int amount) __sk_mem_reduce_allocated() argument 3183 __sk_mem_reclaim(struct sock *sk, int amount) __sk_mem_reclaim() argument 3191 sk_set_peek_off(struct sock *sk, int val) sk_set_peek_off() argument 3262 sock_no_sendmsg_locked(struct sock *sk, struct msghdr *m, size_t len) sock_no_sendmsg_locked() argument 3301 sock_def_wakeup(struct sock *sk) sock_def_wakeup() argument 3312 sock_def_error_report(struct sock *sk) sock_def_error_report() argument 3324 sock_def_readable(struct sock *sk) sock_def_readable() argument 3339 sock_def_write_space(struct sock *sk) sock_def_write_space() argument 3365 sock_def_write_space_wfree(struct sock *sk) sock_def_write_space_wfree() argument 3384 sock_def_destruct(struct sock *sk) sock_def_destruct() argument 3388 sk_send_sigurg(struct sock *sk) sk_send_sigurg() argument 3396 sk_reset_timer(struct sock *sk, struct timer_list* timer, unsigned long expires) sk_reset_timer() argument 3404 sk_stop_timer(struct sock *sk, struct timer_list* timer) sk_stop_timer() argument 3411 sk_stop_timer_sync(struct sock *sk, struct timer_list *timer) sk_stop_timer_sync() argument 3418 sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid) sock_init_data_uid() argument 3501 sock_init_data(struct socket *sock, struct sock *sk) sock_init_data() argument 3511 lock_sock_nested(struct sock *sk, int subclass) lock_sock_nested() argument 3525 release_sock(struct sock *sk) release_sock() argument 3568 __lock_sock(sk); global() variable 3579 struct sock *sk = sock->sk; sock_gettstamp() local 3615 sock_enable_timestamp(struct sock *sk, enum sock_flags flag) sock_enable_timestamp() argument 3632 sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, int level, int type) sock_recv_errqueue() argument 3678 struct sock *sk = sock->sk; sock_common_getsockopt() local 3688 struct sock *sk = sock->sk; sock_common_recvmsg() local 3705 struct sock *sk = sock->sk; sock_common_setsockopt() local 3712 sk_common_release(struct sock *sk) sk_common_release() argument 3747 sk_get_meminfo(const struct sock *sk, u32 *mem) sk_get_meminfo() argument 4138 struct sock *sk = p; sk_busy_loop_end() local 4152 sock_bind_add(struct sock *sk, struct sockaddr *addr, int addr_len) sock_bind_add() argument 4161 sock_ioctl_inout(struct sock *sk, unsigned int cmd, void __user *arg, void *karg, size_t size) sock_ioctl_inout() argument 4184 sock_ioctl_out(struct sock *sk, unsigned int cmd, void __user *arg) sock_ioctl_out() argument 4200 sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg) sk_ioctl() argument [all...] |
/kernel/linux/linux-5.10/net/bluetooth/ |
H A D | sco.c | 49 struct sock *sk; member 59 static void sco_sock_close(struct sock *sk); 60 static void sco_sock_kill(struct sock *sk); 63 #define sco_pi(sk) ((struct sco_pinfo *) sk) 83 struct sock *sk; in sco_sock_timeout() local 90 sk = conn->sk; in sco_sock_timeout() 91 if (sk) in sco_sock_timeout() 92 sock_hold(sk); in sco_sock_timeout() 108 sco_sock_set_timer(struct sock *sk, long timeout) sco_sock_set_timer() argument 118 sco_sock_clear_timer(struct sock *sk) sco_sock_clear_timer() argument 158 sco_chan_del(struct sock *sk, int err) sco_chan_del() argument 186 struct sock *sk; sco_conn_del() local 214 __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) __sco_chan_add() argument 226 sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) sco_chan_add() argument 241 sco_connect(struct hci_dev *hdev, struct sock *sk) sco_connect() argument 287 sco_send_frame(struct sock *sk, struct sk_buff *skb) sco_send_frame() argument 305 struct sock *sk; sco_recv_frame() local 329 struct sock *sk; __sco_get_sock_listen_by_addr() local 347 struct sock *sk = NULL, *sk1 = NULL; sco_get_sock_listen() local 369 sco_sock_destruct(struct sock *sk) sco_sock_destruct() argument 379 struct sock *sk; sco_sock_cleanup_listen() local 396 sco_sock_kill(struct sock *sk) sco_sock_kill() argument 409 __sco_sock_close(struct sock *sk) __sco_sock_close() argument 444 sco_sock_close(struct sock *sk) sco_sock_close() argument 452 sco_skb_put_cmsg(struct sk_buff *skb, struct msghdr *msg, struct sock *sk) sco_skb_put_cmsg() argument 461 sco_sock_init(struct sock *sk, struct sock *parent) sco_sock_init() argument 483 struct sock *sk; sco_sock_alloc() local 509 struct sock *sk; sco_sock_create() local 532 struct sock *sk = sock->sk; sco_sock_bind() local 565 struct sock *sk = sock->sk; sco_sock_connect() local 612 struct sock *sk = sock->sk; sco_sock_listen() local 654 struct sock *sk = sock->sk, *ch; sco_sock_accept() local 709 struct sock *sk = sock->sk; sco_sock_getname() local 726 struct sock *sk = sock->sk; sco_sock_sendmsg() local 809 struct sock *sk = sock->sk; sco_sock_recvmsg() local 831 struct sock *sk = sock->sk; sco_sock_setsockopt() local 905 struct sock *sk = sock->sk; sco_sock_getsockopt_old() local 966 struct sock *sk = sock->sk; sco_sock_getsockopt() local 1046 struct sock *sk = sock->sk; sco_sock_shutdown() local 1076 struct sock *sk = sock->sk; sco_sock_release() local 1101 struct sock *sk = conn->sk; sco_conn_ready() local 1160 struct sock *sk; sco_connect_ind() local 1238 struct sock *sk; sco_debugfs_show() local [all...] |
/kernel/linux/linux-5.10/net/caif/ |
H A D | caif_socket.c | 47 struct sock sk; /* must be first member */ member 92 static void caif_read_lock(struct sock *sk) in caif_read_lock() argument 95 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_lock() 99 static void caif_read_unlock(struct sock *sk) in caif_read_unlock() argument 102 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_unlock() 109 return cf_sk->sk.sk_rcvbuf / 4; in sk_rcvbuf_lowwater() 112 static void caif_flow_ctrl(struct sock *sk, int mode) in caif_flow_ctrl() argument 115 cf_sk = container_of(sk, struc in caif_flow_ctrl() 124 caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) caif_queue_rcv_skb() argument 254 caif_check_flow_release(struct sock *sk) caif_check_flow_release() argument 275 struct sock *sk = sock->sk; caif_seqpkt_recvmsg() local 309 caif_stream_data_wait(struct sock *sk, long timeo) caif_stream_data_wait() argument 350 struct sock *sk = sock->sk; caif_stream_recvmsg() local 467 struct sock *sk = &cf_sk->sk; caif_wait_for_flow_on() local 521 struct sock *sk = sock->sk; caif_seqpkt_sendmsg() local 597 struct sock *sk = sock->sk; caif_stream_sendmsg() local 676 struct sock *sk = sock->sk; setsockopt() local 748 struct sock *sk = sock->sk; caif_connect() local 901 struct sock *sk = sock->sk; caif_release() local 941 struct sock *sk = sock->sk; caif_poll() local 1012 caif_sock_destructor(struct sock *sk) caif_sock_destructor() argument 1030 struct sock *sk = NULL; caif_create() local [all...] |
/kernel/linux/linux-6.6/net/caif/ |
H A D | caif_socket.c | 48 struct sock sk; /* must be first member */ member 87 static void caif_read_lock(struct sock *sk) in caif_read_lock() argument 90 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_lock() 94 static void caif_read_unlock(struct sock *sk) in caif_read_unlock() argument 97 cf_sk = container_of(sk, struct caifsock, sk); in caif_read_unlock() 104 return cf_sk->sk.sk_rcvbuf / 4; in sk_rcvbuf_lowwater() 107 static void caif_flow_ctrl(struct sock *sk, int mode) in caif_flow_ctrl() argument 110 cf_sk = container_of(sk, struc in caif_flow_ctrl() 119 caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) caif_queue_rcv_skb() argument 249 caif_check_flow_release(struct sock *sk) caif_check_flow_release() argument 270 struct sock *sk = sock->sk; caif_seqpkt_recvmsg() local 304 caif_stream_data_wait(struct sock *sk, long timeo) caif_stream_data_wait() argument 345 struct sock *sk = sock->sk; caif_stream_recvmsg() local 462 struct sock *sk = &cf_sk->sk; caif_wait_for_flow_on() local 516 struct sock *sk = sock->sk; caif_seqpkt_sendmsg() local 588 struct sock *sk = sock->sk; caif_stream_sendmsg() local 667 struct sock *sk = sock->sk; setsockopt() local 739 struct sock *sk = sock->sk; caif_connect() local 892 struct sock *sk = sock->sk; caif_release() local 932 struct sock *sk = sock->sk; caif_poll() local 1001 caif_sock_destructor(struct sock *sk) caif_sock_destructor() argument 1019 struct sock *sk = NULL; caif_create() local [all...] |
/kernel/linux/linux-5.10/net/rose/ |
H A D | rose_timer.c | 32 void rose_start_heartbeat(struct sock *sk) in rose_start_heartbeat() argument 34 sk_stop_timer(sk, &sk->sk_timer); in rose_start_heartbeat() 36 sk->sk_timer.function = rose_heartbeat_expiry; in rose_start_heartbeat() 37 sk->sk_timer.expires = jiffies + 5 * HZ; in rose_start_heartbeat() 39 sk_reset_timer(sk, &sk->sk_timer, sk->sk_timer.expires); in rose_start_heartbeat() 42 void rose_start_t1timer(struct sock *sk) in rose_start_t1timer() argument 44 struct rose_sock *rose = rose_sk(sk); in rose_start_t1timer() 54 rose_start_t2timer(struct sock *sk) rose_start_t2timer() argument 66 rose_start_t3timer(struct sock *sk) rose_start_t3timer() argument 78 rose_start_hbtimer(struct sock *sk) rose_start_hbtimer() argument 90 rose_start_idletimer(struct sock *sk) rose_start_idletimer() argument 104 rose_stop_heartbeat(struct sock *sk) rose_stop_heartbeat() argument 109 rose_stop_timer(struct sock *sk) rose_stop_timer() argument 114 rose_stop_idletimer(struct sock *sk) rose_stop_idletimer() argument 121 struct sock *sk = from_timer(sk, t, sk_timer); rose_heartbeat_expiry() local 162 struct sock *sk = &rose->sock; rose_timer_expiry() local 192 struct sock *sk = &rose->sock; rose_idletimer_expiry() local [all...] |
/kernel/linux/linux-6.6/net/rose/ |
H A D | rose_timer.c | 32 void rose_start_heartbeat(struct sock *sk) in rose_start_heartbeat() argument 34 sk_stop_timer(sk, &sk->sk_timer); in rose_start_heartbeat() 36 sk->sk_timer.function = rose_heartbeat_expiry; in rose_start_heartbeat() 37 sk->sk_timer.expires = jiffies + 5 * HZ; in rose_start_heartbeat() 39 sk_reset_timer(sk, &sk->sk_timer, sk->sk_timer.expires); in rose_start_heartbeat() 42 void rose_start_t1timer(struct sock *sk) in rose_start_t1timer() argument 44 struct rose_sock *rose = rose_sk(sk); in rose_start_t1timer() 54 rose_start_t2timer(struct sock *sk) rose_start_t2timer() argument 66 rose_start_t3timer(struct sock *sk) rose_start_t3timer() argument 78 rose_start_hbtimer(struct sock *sk) rose_start_hbtimer() argument 90 rose_start_idletimer(struct sock *sk) rose_start_idletimer() argument 104 rose_stop_heartbeat(struct sock *sk) rose_stop_heartbeat() argument 109 rose_stop_timer(struct sock *sk) rose_stop_timer() argument 114 rose_stop_idletimer(struct sock *sk) rose_stop_idletimer() argument 121 struct sock *sk = from_timer(sk, t, sk_timer); rose_heartbeat_expiry() local 162 struct sock *sk = &rose->sock; rose_timer_expiry() local 192 struct sock *sk = &rose->sock; rose_idletimer_expiry() local [all...] |
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_close.c | 41 struct sock *sk; in smc_close_cleanup_listen() local 44 while ((sk = smc_accept_dequeue(parent, NULL))) in smc_close_cleanup_listen() 45 smc_close_non_accepted(sk); in smc_close_cleanup_listen() 52 struct sock *sk = &smc->sk; in smc_close_stream_wait() local 64 add_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait() 68 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait() 70 READ_ONCE(sk->sk_err) == ECONNABORTED || in smc_close_stream_wait() 71 READ_ONCE(sk->sk_err) == ECONNRESET || in smc_close_stream_wait() 77 remove_wait_queue(sk_sleep(sk), in smc_close_stream_wait() 116 struct sock *sk = &smc->sk; smc_close_cancel_work() local 130 struct sock *sk = &smc->sk; smc_close_active_abort() local 198 struct sock *sk = &smc->sk; smc_close_active() local 316 struct sock *sk = &smc->sk; smc_close_passive_abort_received() local 364 struct sock *sk = &smc->sk; smc_close_passive_work() local 450 struct sock *sk = &smc->sk; smc_close_shutdown_write() local [all...] |
/kernel/linux/linux-5.10/net/dccp/ |
H A D | proto.c | 78 void dccp_set_state(struct sock *sk, const int state) in dccp_set_state() argument 80 const int oldstate = sk->sk_state; in dccp_set_state() 82 dccp_pr_debug("%s(%p) %s --> %s\n", dccp_role(sk), sk, in dccp_set_state() 92 dccp_feat_list_purge(&dccp_sk(sk)->dccps_featneg); in dccp_set_state() 100 sk->sk_prot->unhash(sk); in dccp_set_state() 101 if (inet_csk(sk)->icsk_bind_hash != NULL && in dccp_set_state() 102 !(sk->sk_userlocks & SOCK_BINDPORT_LOCK)) in dccp_set_state() 103 inet_put_port(sk); in dccp_set_state() 118 dccp_finish_passive_close(struct sock *sk) dccp_finish_passive_close() argument 136 dccp_done(struct sock *sk) dccp_done() argument 174 dccp_destruct_common(struct sock *sk) dccp_destruct_common() argument 183 dccp_sk_destruct(struct sock *sk) dccp_sk_destruct() argument 189 dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized) dccp_init_sock() argument 217 dccp_destroy_sock(struct sock *sk) dccp_destroy_sock() argument 247 dccp_listen_start(struct sock *sk, int backlog) dccp_listen_start() argument 264 dccp_disconnect(struct sock *sk, int flags) dccp_disconnect() argument 327 struct sock *sk = sock->sk; dccp_poll() local 378 dccp_ioctl(struct sock *sk, int cmd, unsigned long arg) dccp_ioctl() argument 423 dccp_setsockopt_service(struct sock *sk, const __be32 service, sockptr_t optval, unsigned int optlen) dccp_setsockopt_service() argument 457 dccp_setsockopt_cscov(struct sock *sk, int cscov, bool rx) dccp_setsockopt_cscov() argument 493 dccp_setsockopt_ccid(struct sock *sk, int type, sockptr_t optval, unsigned int optlen) dccp_setsockopt_ccid() argument 518 do_dccp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) do_dccp_setsockopt() argument 584 dccp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) dccp_setsockopt() argument 596 dccp_getsockopt_service(struct sock *sk, int len, __be32 __user *optval, int __user *optlen) dccp_getsockopt_service() argument 624 do_dccp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) do_dccp_getsockopt() argument 692 dccp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) dccp_getsockopt() argument 744 dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) dccp_sendmsg() argument 821 dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, int flags, int *addr_len) dccp_recvmsg() argument 931 struct sock *sk = sock->sk; inet_dccp_listen() local 967 dccp_terminate_connection(struct sock *sk) dccp_terminate_connection() argument 994 dccp_close(struct sock *sk, long timeout) dccp_close() argument 1093 dccp_shutdown(struct sock *sk, int how) dccp_shutdown() argument [all...] |
/kernel/linux/linux-5.10/net/smc/ |
H A D | smc_close.c | 41 struct sock *sk; in smc_close_cleanup_listen() local 44 while ((sk = smc_accept_dequeue(parent, NULL))) in smc_close_cleanup_listen() 45 smc_close_non_accepted(sk); in smc_close_cleanup_listen() 52 struct sock *sk = &smc->sk; in smc_close_stream_wait() local 61 add_wait_queue(sk_sleep(sk), &wait); in smc_close_stream_wait() 65 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait() 67 READ_ONCE(sk->sk_err) == ECONNABORTED || in smc_close_stream_wait() 68 READ_ONCE(sk->sk_err) == ECONNRESET || in smc_close_stream_wait() 74 remove_wait_queue(sk_sleep(sk), in smc_close_stream_wait() 113 struct sock *sk = &smc->sk; smc_close_cancel_work() local 127 struct sock *sk = &smc->sk; smc_close_active_abort() local 195 struct sock *sk = &smc->sk; smc_close_active() local 310 struct sock *sk = &smc->sk; smc_close_passive_abort_received() local 358 struct sock *sk = &smc->sk; smc_close_passive_work() local 444 struct sock *sk = &smc->sk; smc_close_shutdown_write() local [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A D | sock.c | 51 * Anonymous : inet_create tidied up (sk->reuse setting) 52 * Alan Cox : inet sockets don't set sk->type! 149 * @sk: Socket to use a capability on or through 157 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() argument 160 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable() 167 * @sk: Socket to use a capability on or through 174 bool sk_capable(const struct sock *sk, int cap) in sk_capable() argument 176 return sk_ns_capable(sk, &init_user_ns, cap); in sk_capable() 182 * @sk: Socket to use a capability on or through 189 bool sk_net_capable(const struct sock *sk, in argument 293 sk_set_memalloc(struct sock *sk) sk_set_memalloc() argument 301 sk_clear_memalloc(struct sock *sk) sk_clear_memalloc() argument 318 __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) __sk_backlog_rcv() argument 416 sock_needs_netstamp(const struct sock *sk) sock_needs_netstamp() argument 427 sock_disable_timestamp(struct sock *sk, unsigned long flags) sock_disable_timestamp() argument 438 __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) __sock_queue_rcv_skb() argument 473 sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) sock_queue_rcv_skb() argument 485 __sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested, unsigned int trim_cap, bool refcounted) __sk_receive_skb() argument 529 __sk_dst_check(struct sock *sk, u32 cookie) __sk_dst_check() argument 545 sk_dst_check(struct sock *sk, u32 cookie) sk_dst_check() argument 559 sock_bindtoindex_locked(struct sock *sk, int ifindex) sock_bindtoindex_locked() argument 587 sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk) sock_bindtoindex() argument 601 sock_setbindtodevice(struct sock *sk, sockptr_t optval, int optlen) sock_setbindtodevice() argument 647 sock_getbindtodevice(struct sock *sk, char __user *optval, int __user *optlen, int len) sock_getbindtodevice() argument 687 sk_mc_loop(struct sock *sk) sk_mc_loop() argument 707 sock_set_reuseaddr(struct sock *sk) sock_set_reuseaddr() argument 715 sock_set_reuseport(struct sock *sk) sock_set_reuseport() argument 723 sock_no_linger(struct sock *sk) sock_no_linger() argument 732 sock_set_priority(struct sock *sk, u32 priority) sock_set_priority() argument 740 sock_set_sndtimeo(struct sock *sk, s64 secs) sock_set_sndtimeo() argument 751 __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns) __sock_set_timestamps() argument 764 sock_enable_timestamps(struct sock *sk) sock_enable_timestamps() argument 772 sock_set_keepalive(struct sock *sk) sock_set_keepalive() argument 782 __sock_set_rcvbuf(struct sock *sk, int val) __sock_set_rcvbuf() argument 803 sock_set_rcvbuf(struct sock *sk, int val) sock_set_rcvbuf() argument 811 __sock_set_mark(struct sock *sk, u32 val) __sock_set_mark() argument 819 sock_set_mark(struct sock *sk, u32 val) sock_set_mark() argument 836 struct sock *sk = sock->sk; sock_setsockopt() local 1260 sk_get_peer_cred(struct sock *sk) sk_get_peer_cred() argument 1299 struct sock *sk = sock->sk; sock_getsockopt() local 1641 sock_lock_init(struct sock *sk) sock_lock_init() argument 1684 struct sock *sk; sk_prot_alloc() local 1718 sk_prot_free(struct proto *prot, struct sock *sk) sk_prot_free() argument 1747 struct sock *sk; sk_alloc() local 1784 struct sock *sk = container_of(head, struct sock, sk_rcu); __sk_destruct() local 1821 sk_destruct(struct sock *sk) sk_destruct() argument 1836 __sk_free(struct sock *sk) __sk_free() argument 1847 sk_free(struct sock *sk) sk_free() argument 1859 sk_init_common(struct sock *sk) sk_init_common() argument 1887 sk_clone_lock(const struct sock *sk, const gfp_t priority) sk_clone_lock() argument 2009 sk_free_unlock_clone(struct sock *sk) sk_free_unlock_clone() argument 2019 sk_setup_caps(struct sock *sk, struct dst_entry *dst) sk_setup_caps() argument 2051 struct sock *sk = skb->sk; sock_wfree() local 2077 struct sock *sk = skb->sk; __sock_wfree() local 2083 skb_set_owner_w(struct sk_buff *skb, struct sock *sk) skb_set_owner_w() argument 2141 struct sock *sk = skb->sk; sock_rfree() local 2171 sock_i_uid(struct sock *sk) sock_i_uid() argument 2182 __sock_i_ino(struct sock *sk) __sock_i_ino() argument 2193 sock_i_ino(struct sock *sk) sock_i_ino() argument 2207 sock_wmalloc(struct sock *sk, unsigned long size, int force, gfp_t priority) sock_wmalloc() argument 2225 struct sock *sk = skb->sk; sock_ofree() local 2230 sock_omalloc(struct sock *sk, unsigned long size, gfp_t priority) sock_omalloc() argument 2253 sock_kmalloc(struct sock *sk, int size, gfp_t priority) sock_kmalloc() argument 2277 __sock_kfree_s(struct sock *sk, void *mem, int size, const bool nullify) __sock_kfree_s() argument 2289 sock_kfree_s(struct sock *sk, void *mem, int size) sock_kfree_s() argument 2295 sock_kzfree_s(struct sock *sk, void *mem, int size) sock_kzfree_s() argument 2304 sock_wait_for_wmem(struct sock *sk, long timeo) sock_wait_for_wmem() argument 2333 sock_alloc_send_pskb(struct sock *sk, unsigned long header_len, unsigned long data_len, int noblock, int *errcode, int max_page_order) sock_alloc_send_pskb() argument 2377 sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) sock_alloc_send_skb() argument 2384 __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg, struct sockcm_cookie *sockc) __sock_cmsg_send() argument 2427 sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct sockcm_cookie *sockc) sock_cmsg_send() argument 2446 sk_enter_memory_pressure(struct sock *sk) sk_enter_memory_pressure() argument 2454 sk_leave_memory_pressure(struct sock *sk) sk_leave_memory_pressure() argument 2512 sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag) sk_page_frag_refill() argument 2574 __sk_flush_backlog(struct sock *sk) __sk_flush_backlog() argument 2592 sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb) sk_wait_data() argument 2615 __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) __sk_mem_raise_allocated() argument 2702 __sk_mem_schedule(struct sock *sk, int size, int kind) __sk_mem_schedule() argument 2721 __sk_mem_reduce_allocated(struct sock *sk, int amount) __sk_mem_reduce_allocated() argument 2739 __sk_mem_reclaim(struct sock *sk, int amount) __sk_mem_reclaim() argument 2747 sk_set_peek_off(struct sock *sk, int val) sk_set_peek_off() argument 2818 sock_no_sendmsg_locked(struct sock *sk, struct msghdr *m, size_t len) sock_no_sendmsg_locked() argument 2873 sock_no_sendpage_locked(struct sock *sk, struct page *page, int offset, size_t size, int flags) sock_no_sendpage_locked() argument 2893 sock_def_wakeup(struct sock *sk) sock_def_wakeup() argument 2904 sock_def_error_report(struct sock *sk) sock_def_error_report() argument 2916 sock_def_readable(struct sock *sk) sock_def_readable() argument 2929 sock_def_write_space(struct sock *sk) sock_def_write_space() argument 2952 sock_def_destruct(struct sock *sk) sock_def_destruct() argument 2956 sk_send_sigurg(struct sock *sk) sk_send_sigurg() argument 2964 sk_reset_timer(struct sock *sk, struct timer_list* timer, unsigned long expires) sk_reset_timer() argument 2972 sk_stop_timer(struct sock *sk, struct timer_list* timer) sk_stop_timer() argument 2979 sk_stop_timer_sync(struct sock *sk, struct timer_list *timer) sk_stop_timer_sync() argument 2986 sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid) sock_init_data_uid() argument 3068 sock_init_data(struct socket *sock, struct sock *sk) sock_init_data() argument 3078 lock_sock_nested(struct sock *sk, int subclass) lock_sock_nested() argument 3094 release_sock(struct sock *sk) release_sock() argument 3126 lock_sock_fast(struct sock *sk) lock_sock_fast() argument 3152 struct sock *sk = sock->sk; sock_gettstamp() local 3188 sock_enable_timestamp(struct sock *sk, enum sock_flags flag) sock_enable_timestamp() argument 3205 sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, int level, int type) sock_recv_errqueue() argument 3251 struct sock *sk = sock->sk; sock_common_getsockopt() local 3261 struct sock *sk = sock->sk; sock_common_recvmsg() local 3279 struct sock *sk = sock->sk; sock_common_setsockopt() local 3286 sk_common_release(struct sock *sk) sk_common_release() argument 3323 sk_get_meminfo(const struct sock *sk, u32 *mem) sk_get_meminfo() argument 3724 struct sock *sk = p; sk_busy_loop_end() local 3732 sock_bind_add(struct sock *sk, struct sockaddr *addr, int addr_len) sock_bind_add() argument [all...] |
/kernel/linux/linux-5.10/net/iucv/ |
H A D | af_iucv.c | 54 #define __iucv_sock_wait(sk, condition, timeo, ret) \ 59 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \ 69 release_sock(sk); \ 71 lock_sock(sk); \ 72 ret = sock_error(sk); \ 76 finish_wait(sk_sleep(sk), &__wait); \ 79 #define iucv_sock_wait(sk, condition, timeo) \ 83 __iucv_sock_wait(sk, condition, timeo, __ret); \ 89 static void iucv_sock_kill(struct sock *sk); 90 static void iucv_sock_close(struct sock *sk); 165 iucv_sock_in_state(struct sock *sk, int state, int state2) iucv_sock_in_state() argument 178 iucv_below_msglim(struct sock *sk) iucv_below_msglim() argument 194 iucv_sock_wake_msglim(struct sock *sk) iucv_sock_wake_msglim() argument 289 struct sock *sk; __iucv_get_sock_by_name() local 298 iucv_sock_destruct(struct sock *sk) iucv_sock_destruct() argument 319 struct sock *sk; iucv_sock_cleanup_listen() local 330 iucv_sock_link(struct iucv_sock_list *l, struct sock *sk) iucv_sock_link() argument 337 iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk) iucv_sock_unlink() argument 345 iucv_sock_kill(struct sock *sk) iucv_sock_kill() argument 356 iucv_sever_path(struct sock *sk, int with_user_data) iucv_sever_path() argument 376 iucv_send_ctrl(struct sock *sk, u8 flags) iucv_send_ctrl() argument 402 iucv_sock_close(struct sock *sk) iucv_sock_close() argument 465 iucv_sock_init(struct sock *sk, struct sock *parent) iucv_sock_init() argument 475 struct sock *sk; iucv_sock_alloc() local 516 iucv_accept_enqueue(struct sock *parent, struct sock *sk) iucv_accept_enqueue() argument 529 iucv_accept_unlink(struct sock *sk) iucv_accept_unlink() argument 546 struct sock *sk; iucv_accept_dequeue() local 592 struct sock *sk = sock->sk; iucv_sock_bind() local 670 iucv_sock_autobind(struct sock *sk) iucv_sock_autobind() argument 695 struct sock *sk = sock->sk; afiucv_path_connect() local 742 struct sock *sk = sock->sk; iucv_sock_connect() local 797 struct sock *sk = sock->sk; iucv_sock_listen() local 824 struct sock *sk = sock->sk, *nsk; iucv_sock_accept() local 878 struct sock *sk = sock->sk; iucv_sock_getname() local 924 struct sock *sk = sock->sk; iucv_sock_sendmsg() local 1159 iucv_process_message(struct sock *sk, struct sk_buff *skb, struct iucv_path *path, struct iucv_message *msg) iucv_process_message() argument 1221 iucv_process_message_q(struct sock *sk) iucv_process_message_q() argument 1243 struct sock *sk = sock->sk; iucv_sock_recvmsg() local 1362 struct sock *sk; iucv_accept_poll() local 1377 struct sock *sk = sock->sk; iucv_sock_poll() local 1415 struct sock *sk = sock->sk; iucv_sock_shutdown() local 1483 struct sock *sk = sock->sk; iucv_sock_release() local 1500 struct sock *sk = sock->sk; iucv_sock_setsockopt() local 1550 struct sock *sk = sock->sk; iucv_sock_getsockopt() local 1603 struct sock *sk, *nsk; iucv_callback_connreq() local 1696 struct sock *sk = path->private; iucv_callback_connack() local 1704 struct sock *sk = path->private; iucv_callback_rx() local 1749 struct sock *sk = path->private; iucv_callback_txdone() local 1786 struct sock *sk = path->private; iucv_callback_connrej() local 1804 struct sock *sk = path->private; iucv_callback_shutdown() local 1838 afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_syn() argument 1903 afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_synack() argument 1924 afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_synfin() argument 1944 afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_fin() argument 1965 afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_win() argument 1983 afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_rx() argument 2032 struct sock *sk; afiucv_hs_rcv() local 2138 struct sock *sk = NULL; afiucv_hs_callback_txnotify() local 2210 struct sock *sk; afiucv_netdev_event() local 2262 struct sock *sk; iucv_sock_create() local [all...] |
/kernel/linux/linux-6.6/net/iucv/ |
H A D | af_iucv.c | 56 #define __iucv_sock_wait(sk, condition, timeo, ret) \ 61 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \ 71 release_sock(sk); \ 73 lock_sock(sk); \ 74 ret = sock_error(sk); \ 78 finish_wait(sk_sleep(sk), &__wait); \ 81 #define iucv_sock_wait(sk, condition, timeo) \ 85 __iucv_sock_wait(sk, condition, timeo, __ret); \ 91 static void iucv_sock_kill(struct sock *sk); 92 static void iucv_sock_close(struct sock *sk); 150 iucv_sock_in_state(struct sock *sk, int state, int state2) iucv_sock_in_state() argument 163 iucv_below_msglim(struct sock *sk) iucv_below_msglim() argument 179 iucv_sock_wake_msglim(struct sock *sk) iucv_sock_wake_msglim() argument 267 struct sock *sk; __iucv_get_sock_by_name() local 276 iucv_sock_destruct(struct sock *sk) iucv_sock_destruct() argument 295 struct sock *sk; iucv_sock_cleanup_listen() local 306 iucv_sock_link(struct iucv_sock_list *l, struct sock *sk) iucv_sock_link() argument 313 iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk) iucv_sock_unlink() argument 321 iucv_sock_kill(struct sock *sk) iucv_sock_kill() argument 332 iucv_sever_path(struct sock *sk, int with_user_data) iucv_sever_path() argument 352 iucv_send_ctrl(struct sock *sk, u8 flags) iucv_send_ctrl() argument 378 iucv_sock_close(struct sock *sk) iucv_sock_close() argument 441 iucv_sock_init(struct sock *sk, struct sock *parent) iucv_sock_init() argument 451 struct sock *sk; iucv_sock_alloc() local 493 iucv_accept_enqueue(struct sock *parent, struct sock *sk) iucv_accept_enqueue() argument 506 iucv_accept_unlink(struct sock *sk) iucv_accept_unlink() argument 523 struct sock *sk; iucv_accept_dequeue() local 569 struct sock *sk = sock->sk; iucv_sock_bind() local 647 iucv_sock_autobind(struct sock *sk) iucv_sock_autobind() argument 672 struct sock *sk = sock->sk; afiucv_path_connect() local 719 struct sock *sk = sock->sk; iucv_sock_connect() local 774 struct sock *sk = sock->sk; iucv_sock_listen() local 801 struct sock *sk = sock->sk, *nsk; iucv_sock_accept() local 855 struct sock *sk = sock->sk; iucv_sock_getname() local 901 struct sock *sk = sock->sk; iucv_sock_sendmsg() local 1141 iucv_process_message(struct sock *sk, struct sk_buff *skb, struct iucv_path *path, struct iucv_message *msg) iucv_process_message() argument 1203 iucv_process_message_q(struct sock *sk) iucv_process_message_q() argument 1224 struct sock *sk = sock->sk; iucv_sock_recvmsg() local 1343 struct sock *sk; iucv_accept_poll() local 1358 struct sock *sk = sock->sk; iucv_sock_poll() local 1396 struct sock *sk = sock->sk; iucv_sock_shutdown() local 1464 struct sock *sk = sock->sk; iucv_sock_release() local 1481 struct sock *sk = sock->sk; iucv_sock_setsockopt() local 1531 struct sock *sk = sock->sk; iucv_sock_getsockopt() local 1584 struct sock *sk, *nsk; iucv_callback_connreq() local 1677 struct sock *sk = path->private; iucv_callback_connack() local 1685 struct sock *sk = path->private; iucv_callback_rx() local 1730 struct sock *sk = path->private; iucv_callback_txdone() local 1774 struct sock *sk = path->private; iucv_callback_connrej() local 1792 struct sock *sk = path->private; iucv_callback_shutdown() local 1835 afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_syn() argument 1900 afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_synack() argument 1921 afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_synfin() argument 1941 afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_fin() argument 1964 afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_win() argument 1982 afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb) afiucv_hs_callback_rx() argument 2031 struct sock *sk; afiucv_hs_rcv() local 2133 afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify n) afiucv_hs_callback_txnotify() argument 2176 struct sock *sk; afiucv_netdev_event() local 2228 struct sock *sk; iucv_sock_create() local [all...] |