Lines Matching defs:sk

169 bool sk_ns_capable(const struct sock *sk,  in sk_ns_capable()
186 bool sk_capable(const struct sock *sk, int cap) in sk_capable()
201 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable()
300 void sk_set_memalloc(struct sock *sk) in sk_set_memalloc()
308 void sk_clear_memalloc(struct sock *sk) in sk_clear_memalloc()
325 int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in __sk_backlog_rcv()
344 void sk_error_report(struct sock *sk) in sk_error_report()
457 static bool sk_set_prio_allowed(const struct sock *sk, int val) in sk_set_prio_allowed()
464 static bool sock_needs_netstamp(const struct sock *sk) in sock_needs_netstamp()
475 static void sock_disable_timestamp(struct sock *sk, unsigned long flags) in sock_disable_timestamp()
486 int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in __sock_queue_rcv_skb()
521 int sock_queue_rcv_skb_reason(struct sock *sk, struct sk_buff *skb, in sock_queue_rcv_skb_reason()
551 int __sk_receive_skb(struct sock *sk, struct sk_buff *skb, in __sk_receive_skb()
599 struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie) in __sk_dst_check()
617 struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie) in sk_dst_check()
633 static int sock_bindtoindex_locked(struct sock *sk, int ifindex) in sock_bindtoindex_locked()
663 int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk) in sock_bindtoindex()
677 static int sock_setbindtodevice(struct sock *sk, sockptr_t optval, int optlen) in sock_setbindtodevice()
725 static int sock_getbindtodevice(struct sock *sk, sockptr_t optval, in sock_getbindtodevice()
766 bool sk_mc_loop(const struct sock *sk) in sk_mc_loop()
786 void sock_set_reuseaddr(struct sock *sk) in sock_set_reuseaddr()
794 void sock_set_reuseport(struct sock *sk) in sock_set_reuseport()
802 void sock_no_linger(struct sock *sk) in sock_no_linger()
811 void sock_set_priority(struct sock *sk, u32 priority) in sock_set_priority()
817 void sock_set_sndtimeo(struct sock *sk, s64 secs) in sock_set_sndtimeo()
828 static void __sock_set_timestamps(struct sock *sk, bool val, bool new, bool ns) in __sock_set_timestamps()
838 void sock_enable_timestamps(struct sock *sk) in sock_enable_timestamps()
846 void sock_set_timestamp(struct sock *sk, int optname, bool valbool) in sock_set_timestamp()
864 static int sock_timestamping_bind_phc(struct sock *sk, int phc_index) in sock_timestamping_bind_phc()
901 int sock_set_timestamping(struct sock *sk, int optname, in sock_set_timestamping()
951 void sock_set_keepalive(struct sock *sk) in sock_set_keepalive()
961 static void __sock_set_rcvbuf(struct sock *sk, int val) in __sock_set_rcvbuf()
982 void sock_set_rcvbuf(struct sock *sk, int val) in sock_set_rcvbuf()
990 static void __sock_set_mark(struct sock *sk, u32 val) in __sock_set_mark()
998 void sock_set_mark(struct sock *sk, u32 val) in sock_set_mark()
1006 static void sock_release_reserved_memory(struct sock *sk, int bytes) in sock_release_reserved_memory()
1016 static int sock_reserve_memory(struct sock *sk, int bytes) in sock_reserve_memory()
1066 sock_devmem_dontneed(struct sock *sk, sockptr_t optval, unsigned int optlen) in sock_devmem_dontneed()
1124 void sockopt_lock_sock(struct sock *sk) in sockopt_lock_sock()
1137 void sockopt_release_sock(struct sock *sk) in sockopt_release_sock()
1174 int sk_setsockopt(struct sock *sk, int level, int optname, in sk_setsockopt()
1651 static const struct cred *sk_get_peer_cred(struct sock *sk) in sk_get_peer_cred()
1690 int sk_getsockopt(struct sock *sk, int level, int optname, in sk_getsockopt()
2116 static inline void sock_lock_init(struct sock *sk) in sock_lock_init()
2172 struct sock *sk; in sk_prot_alloc() local
2205 static void sk_prot_free(struct proto *prot, struct sock *sk) in sk_prot_free()
2237 struct sock *sk; in sk_alloc() local
2278 struct sock *sk = container_of(head, struct sock, sk_rcu); in __sk_destruct() local
2320 void sk_net_refcnt_upgrade(struct sock *sk) in sk_net_refcnt_upgrade()
2333 void sk_destruct(struct sock *sk) in sk_destruct()
2348 static void __sk_free(struct sock *sk) in __sk_free()
2359 void sk_free(struct sock *sk) in sk_free()
2371 static void sk_init_common(struct sock *sk) in sk_init_common()
2404 struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority) in sk_clone_lock()
2525 void sk_free_unlock_clone(struct sock *sk) in sk_free_unlock_clone()
2535 static u32 sk_dst_gso_max_size(struct sock *sk, struct dst_entry *dst) in sk_dst_gso_max_size()
2553 void sk_setup_caps(struct sock *sk, struct dst_entry *dst) in sk_setup_caps()
2589 struct sock *sk = skb->sk; in sock_wfree() local
2627 struct sock *sk = skb->sk; in __sock_wfree() local
2633 void skb_set_owner_w(struct sk_buff *skb, struct sock *sk) in skb_set_owner_w()
2687 struct sock *sk = skb->sk; in sock_rfree() local
2711 struct sock *sk = skb->sk; in sock_pfree() local
2727 kuid_t sock_i_uid(struct sock *sk) in sock_i_uid()
2738 unsigned long __sock_i_ino(struct sock *sk) in __sock_i_ino()
2749 unsigned long sock_i_ino(struct sock *sk) in sock_i_ino()
2763 struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, in sock_wmalloc()
2781 struct sock *sk = skb->sk; in sock_ofree() local
2786 struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size, in sock_omalloc()
2809 void *sock_kmalloc(struct sock *sk, int size, gfp_t priority) in sock_kmalloc()
2833 static inline void __sock_kfree_s(struct sock *sk, void *mem, int size, in __sock_kfree_s()
2845 void sock_kfree_s(struct sock *sk, void *mem, int size) in sock_kfree_s()
2851 void sock_kzfree_s(struct sock *sk, void *mem, int size) in sock_kzfree_s()
2860 static long sock_wait_for_wmem(struct sock *sk, long timeo) in sock_wait_for_wmem()
2889 struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len, in sock_alloc_send_pskb()
2933 int __sock_cmsg_send(struct sock *sk, struct cmsghdr *cmsg, in __sock_cmsg_send()
2997 int sock_cmsg_send(struct sock *sk, struct msghdr *msg, in sock_cmsg_send()
3016 static void sk_enter_memory_pressure(struct sock *sk) in sk_enter_memory_pressure()
3024 static void sk_leave_memory_pressure(struct sock *sk) in sk_leave_memory_pressure()
3083 bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag) in sk_page_frag_refill()
3094 void __lock_sock(struct sock *sk) in __lock_sock()
3112 void __release_sock(struct sock *sk) in __release_sock()
3145 void __sk_flush_backlog(struct sock *sk) in __sk_flush_backlog()
3169 int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb) in sk_wait_data()
3198 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) in __sk_mem_raise_allocated()
3312 int __sk_mem_schedule(struct sock *sk, int size, int kind) in __sk_mem_schedule()
3331 void __sk_mem_reduce_allocated(struct sock *sk, int amount) in __sk_mem_reduce_allocated()
3348 void __sk_mem_reclaim(struct sock *sk, int amount) in __sk_mem_reclaim()
3356 int sk_set_peek_off(struct sock *sk, int val) in sk_set_peek_off()
3427 int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *m, size_t len) in sock_no_sendmsg_locked()
3466 static void sock_def_wakeup(struct sock *sk) in sock_def_wakeup()
3477 static void sock_def_error_report(struct sock *sk) in sock_def_error_report()
3489 void sock_def_readable(struct sock *sk) in sock_def_readable()
3504 static void sock_def_write_space(struct sock *sk) in sock_def_write_space()
3530 static void sock_def_write_space_wfree(struct sock *sk) in sock_def_write_space_wfree()
3549 static void sock_def_destruct(struct sock *sk) in sock_def_destruct()
3553 void sk_send_sigurg(struct sock *sk) in sk_send_sigurg()
3561 void sk_reset_timer(struct sock *sk, struct timer_list* timer, in sk_reset_timer()
3569 void sk_stop_timer(struct sock *sk, struct timer_list* timer) in sk_stop_timer()
3576 void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer) in sk_stop_timer_sync()
3583 void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid) in sock_init_data_uid()
3654 void sock_init_data(struct socket *sock, struct sock *sk) in sock_init_data()
3664 void lock_sock_nested(struct sock *sk, int subclass) in lock_sock_nested()
3678 void release_sock(struct sock *sk) in release_sock()
3695 bool __lock_sock_fast(struct sock *sk) __acquires(&sk->sk_lock.slock) in __lock_sock_fast()
3730 struct sock *sk = sock->sk; in sock_gettstamp() local
3766 void sock_enable_timestamp(struct sock *sk, enum sock_flags flag) in sock_enable_timestamp()
3783 int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, in sock_recv_errqueue()
3829 struct sock *sk = sock->sk; in sock_common_getsockopt() local
3839 struct sock *sk = sock->sk; in sock_common_recvmsg() local
3856 struct sock *sk = sock->sk; in sock_common_setsockopt() local
3863 void sk_common_release(struct sock *sk) in sk_common_release()
3898 void sk_get_meminfo(const struct sock *sk, u32 *mem) in sk_get_meminfo()
4289 struct sock *sk = p; in sk_busy_loop_end() local
4303 int sock_bind_add(struct sock *sk, struct sockaddr *addr, int addr_len) in sock_bind_add()
4312 int sock_ioctl_inout(struct sock *sk, unsigned int cmd, in sock_ioctl_inout()
4335 static int sock_ioctl_out(struct sock *sk, unsigned int cmd, void __user *arg) in sock_ioctl_out()
4351 int sk_ioctl(struct sock *sk, unsigned int cmd, void __user *arg) in sk_ioctl()