Lines Matching defs:sk
157 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable()
174 bool sk_capable(const struct sock *sk, int cap) in sk_capable()
189 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable()
293 void sk_set_memalloc(struct sock *sk) in sk_set_memalloc()
301 void sk_clear_memalloc(struct sock *sk) in sk_clear_memalloc()
318 int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in __sk_backlog_rcv()
430 static bool sock_needs_netstamp(const struct sock *sk) in sock_needs_netstamp()
441 static void sock_disable_timestamp(struct sock *sk, unsigned long flags) in sock_disable_timestamp()
452 int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in __sock_queue_rcv_skb()
487 int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in sock_queue_rcv_skb()
499 int __sk_receive_skb(struct sock *sk, struct sk_buff *skb, in __sk_receive_skb()
543 struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie) in __sk_dst_check()
559 struct dst_entry *sk_dst_check(struct sock *sk, u32 cookie) in sk_dst_check()
573 static int sock_setbindtodevice_locked(struct sock *sk, int ifindex) in sock_setbindtodevice_locked()
601 static int sock_setbindtodevice(struct sock *sk, char __user *optval, in sock_setbindtodevice()
651 static int sock_getbindtodevice(struct sock *sk, char __user *optval, in sock_getbindtodevice()
691 static inline void sock_valbool_flag(struct sock *sk, int bit, int valbool) in sock_valbool_flag()
699 bool sk_mc_loop(struct sock *sk) in sk_mc_loop()
728 struct sock *sk = sock->sk; in sock_setsockopt() local
1187 static const struct cred *sk_get_peer_cred(struct sock *sk) in sk_get_peer_cred()
1226 struct sock *sk = sock->sk; in sock_getsockopt() local
1569 static inline void sock_lock_init(struct sock *sk) in sock_lock_init()
1611 struct sock *sk; in sk_prot_alloc() local
1648 static void sk_prot_free(struct proto *prot, struct sock *sk) in sk_prot_free()
1678 struct sock *sk; in sk_alloc() local
1715 struct sock *sk = container_of(head, struct sock, sk_rcu); in __sk_destruct() local
1752 void sk_destruct(struct sock *sk) in sk_destruct()
1767 static void __sk_free(struct sock *sk) in __sk_free()
1778 void sk_free(struct sock *sk) in sk_free()
1790 static void sk_init_common(struct sock *sk) in sk_init_common()
1818 struct sock *sk_clone_lock(const struct sock *sk, const gfp_t priority) in sk_clone_lock()
1936 void sk_free_unlock_clone(struct sock *sk) in sk_free_unlock_clone()
1946 void sk_setup_caps(struct sock *sk, struct dst_entry *dst) in sk_setup_caps()
1978 struct sock *sk = skb->sk; in sock_wfree() local
2004 struct sock *sk = skb->sk; in __sock_wfree() local
2010 void skb_set_owner_w(struct sk_buff *skb, struct sock *sk) in skb_set_owner_w()
2068 struct sock *sk = skb->sk; in sock_rfree() local
2086 kuid_t sock_i_uid(struct sock *sk) in sock_i_uid()
2097 unsigned long __sock_i_ino(struct sock *sk) in __sock_i_ino()
2108 unsigned long sock_i_ino(struct sock *sk) in sock_i_ino()
2122 struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, in sock_wmalloc()
2140 struct sock *sk = skb->sk; in sock_ofree() local
2145 struct sk_buff *sock_omalloc(struct sock *sk, unsigned long size, in sock_omalloc()
2168 void *sock_kmalloc(struct sock *sk, int size, gfp_t priority) in sock_kmalloc()
2190 static inline void __sock_kfree_s(struct sock *sk, void *mem, int size, in __sock_kfree_s()
2202 void sock_kfree_s(struct sock *sk, void *mem, int size) in sock_kfree_s()
2208 void sock_kzfree_s(struct sock *sk, void *mem, int size) in sock_kzfree_s()
2217 static long sock_wait_for_wmem(struct sock *sk, long timeo) in sock_wait_for_wmem()
2246 struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len, in sock_alloc_send_pskb()
2290 struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, in sock_alloc_send_skb()
2297 int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg, in __sock_cmsg_send()
2340 int sock_cmsg_send(struct sock *sk, struct msghdr *msg, in sock_cmsg_send()
2359 static void sk_enter_memory_pressure(struct sock *sk) in sk_enter_memory_pressure()
2367 static void sk_leave_memory_pressure(struct sock *sk) in sk_leave_memory_pressure()
2425 bool sk_page_frag_refill(struct sock *sk, struct page_frag *pfrag) in sk_page_frag_refill()
2436 static void __lock_sock(struct sock *sk) in __lock_sock()
2454 void __release_sock(struct sock *sk) in __release_sock()
2487 void __sk_flush_backlog(struct sock *sk) in __sk_flush_backlog()
2505 int sk_wait_data(struct sock *sk, long *timeo, const struct sk_buff *skb) in sk_wait_data()
2528 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind) in __sk_mem_raise_allocated()
2615 int __sk_mem_schedule(struct sock *sk, int size, int kind) in __sk_mem_schedule()
2634 void __sk_mem_reduce_allocated(struct sock *sk, int amount) in __sk_mem_reduce_allocated()
2652 void __sk_mem_reclaim(struct sock *sk, int amount) in __sk_mem_reclaim()
2660 int sk_set_peek_off(struct sock *sk, int val) in sk_set_peek_off()
2745 int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *m, size_t len) in sock_no_sendmsg_locked()
2800 ssize_t sock_no_sendpage_locked(struct sock *sk, struct page *page, in sock_no_sendpage_locked()
2820 static void sock_def_wakeup(struct sock *sk) in sock_def_wakeup()
2831 static void sock_def_error_report(struct sock *sk) in sock_def_error_report()
2843 static void sock_def_readable(struct sock *sk) in sock_def_readable()
2856 static void sock_def_write_space(struct sock *sk) in sock_def_write_space()
2879 static void sock_def_destruct(struct sock *sk) in sock_def_destruct()
2883 void sk_send_sigurg(struct sock *sk) in sk_send_sigurg()
2891 void sk_reset_timer(struct sock *sk, struct timer_list* timer, in sk_reset_timer()
2899 void sk_stop_timer(struct sock *sk, struct timer_list* timer) in sk_stop_timer()
2906 void sk_stop_timer_sync(struct sock *sk, struct timer_list *timer) in sk_stop_timer_sync()
2913 void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid) in sock_init_data_uid()
2995 void sock_init_data(struct socket *sock, struct sock *sk) in sock_init_data()
3005 void lock_sock_nested(struct sock *sk, int subclass) in lock_sock_nested()
3021 void release_sock(struct sock *sk) in release_sock()
3053 bool lock_sock_fast(struct sock *sk) in lock_sock_fast()
3079 struct sock *sk = sock->sk; in sock_gettstamp() local
3115 void sock_enable_timestamp(struct sock *sk, int flag) in sock_enable_timestamp()
3132 int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, in sock_recv_errqueue()
3178 struct sock *sk = sock->sk; in sock_common_getsockopt() local
3188 struct sock *sk = sock->sk; in compat_sock_common_getsockopt() local
3201 struct sock *sk = sock->sk; in sock_common_recvmsg() local
3219 struct sock *sk = sock->sk; in sock_common_setsockopt() local
3229 struct sock *sk = sock->sk; in compat_sock_common_setsockopt() local
3239 void sk_common_release(struct sock *sk) in sk_common_release()
3276 void sk_get_meminfo(const struct sock *sk, u32 *mem) in sk_get_meminfo()
3676 struct sock *sk = p; in sk_busy_loop_end() local