Lines Matching refs:wq
248 struct socket_wq *wq; in sock_alloc_inode() local
253 wq = kmalloc(sizeof(*wq), GFP_KERNEL); in sock_alloc_inode()
254 if (!wq) { in sock_alloc_inode()
258 init_waitqueue_head(&wq->wait); in sock_alloc_inode()
259 wq->fasync_list = NULL; in sock_alloc_inode()
260 wq->flags = 0; in sock_alloc_inode()
261 RCU_INIT_POINTER(ei->socket.wq, wq); in sock_alloc_inode()
275 struct socket_wq *wq; in sock_destroy_inode() local
278 wq = rcu_dereference_protected(ei->socket.wq, 1); in sock_destroy_inode()
279 kfree_rcu(wq, rcu); in sock_destroy_inode()
604 if (rcu_dereference_protected(sock->wq, 1)->fasync_list) in sock_release()
1065 struct socket_wq *wq; in sock_fasync() local
1071 wq = rcu_dereference_protected(sock->wq, lockdep_sock_is_held(sk)); in sock_fasync()
1072 fasync_helper(fd, filp, on, &wq->fasync_list); in sock_fasync()
1074 if (!wq->fasync_list) in sock_fasync()
1085 int sock_wake_async(struct socket_wq *wq, int how, int band) in sock_wake_async() argument
1087 if (!wq || !wq->fasync_list) in sock_wake_async()
1092 if (test_bit(SOCKWQ_ASYNC_WAITDATA, &wq->flags)) in sock_wake_async()
1096 if (!test_and_clear_bit(SOCKWQ_ASYNC_NOSPACE, &wq->flags)) in sock_wake_async()
1101 kill_fasync(&wq->fasync_list, SIGIO, band); in sock_wake_async()
1104 kill_fasync(&wq->fasync_list, SIGURG, band); in sock_wake_async()