af_netlink.c (b3539219c9ea20ebf6a5ea3cc534f423a3607c41) | af_netlink.c (b03efcfb2180289718991bb984044ce6c5b7d1b0) |
---|---|
1/* 2 * NETLINK Kernel-user communication protocol. 3 * 4 * Authors: Alan Cox <alan@redhat.com> 5 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 844 unchanged lines hidden (view full) --- 853 854 read_unlock(&nl_table_lock); 855} 856 857static inline void netlink_rcv_wake(struct sock *sk) 858{ 859 struct netlink_sock *nlk = nlk_sk(sk); 860 | 1/* 2 * NETLINK Kernel-user communication protocol. 3 * 4 * Authors: Alan Cox <alan@redhat.com> 5 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 844 unchanged lines hidden (view full) --- 853 854 read_unlock(&nl_table_lock); 855} 856 857static inline void netlink_rcv_wake(struct sock *sk) 858{ 859 struct netlink_sock *nlk = nlk_sk(sk); 860 |
861 if (!skb_queue_len(&sk->sk_receive_queue)) | 861 if (skb_queue_empty(&sk->sk_receive_queue)) |
862 clear_bit(0, &nlk->state); 863 if (!test_bit(0, &nlk->state)) 864 wake_up_interruptible(&nlk->wait); 865} 866 867static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, 868 struct msghdr *msg, size_t len) 869{ --- 596 unchanged lines hidden --- | 862 clear_bit(0, &nlk->state); 863 if (!test_bit(0, &nlk->state)) 864 wake_up_interruptible(&nlk->wait); 865} 866 867static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, 868 struct msghdr *msg, size_t len) 869{ --- 596 unchanged lines hidden --- |