Home
last modified time | relevance | path

Searched refs:nsock (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/block/
Dnbd.c267 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, in nbd_mark_nsock_dead() argument
270 if (!nsock->dead && notify && !nbd_disconnected(nbd->config)) { in nbd_mark_nsock_dead()
279 if (!nsock->dead) { in nbd_mark_nsock_dead()
280 kernel_sock_shutdown(nsock->sock, SHUT_RDWR); in nbd_mark_nsock_dead()
291 nsock->dead = true; in nbd_mark_nsock_dead()
292 nsock->pending = NULL; in nbd_mark_nsock_dead()
293 nsock->sent = 0; in nbd_mark_nsock_dead()
364 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown() local
365 mutex_lock(&nsock->tx_lock); in sock_shutdown()
366 nbd_mark_nsock_dead(nbd, nsock, 0); in sock_shutdown()
[all …]
/kernel/linux/linux-5.10/net/bluetooth/cmtp/
Dsock.c72 struct socket *nsock; in do_cmtp_sock_ioctl() local
85 nsock = sockfd_lookup(ca.sock, &err); in do_cmtp_sock_ioctl()
86 if (!nsock) in do_cmtp_sock_ioctl()
89 if (nsock->sk->sk_state != BT_CONNECTED) { in do_cmtp_sock_ioctl()
90 sockfd_put(nsock); in do_cmtp_sock_ioctl()
94 err = cmtp_add_connection(&ca, nsock); in do_cmtp_sock_ioctl()
99 sockfd_put(nsock); in do_cmtp_sock_ioctl()
/kernel/linux/linux-5.10/net/bluetooth/bnep/
Dsock.c58 struct socket *nsock; in do_bnep_sock_ioctl() local
72 nsock = sockfd_lookup(ca.sock, &err); in do_bnep_sock_ioctl()
73 if (!nsock) in do_bnep_sock_ioctl()
76 if (nsock->sk->sk_state != BT_CONNECTED) { in do_bnep_sock_ioctl()
77 sockfd_put(nsock); in do_bnep_sock_ioctl()
82 err = bnep_add_connection(&ca, nsock); in do_bnep_sock_ioctl()
87 sockfd_put(nsock); in do_bnep_sock_ioctl()
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
Dcore.c1921 struct socket *sock = s->sock, *nsock; in rfcomm_accept_connection() local
1931 err = kernel_accept(sock, &nsock, O_NONBLOCK); in rfcomm_accept_connection()
1936 nsock->sk->sk_data_ready = rfcomm_l2data_ready; in rfcomm_accept_connection()
1937 nsock->sk->sk_state_change = rfcomm_l2state_change; in rfcomm_accept_connection()
1939 s = rfcomm_session_add(nsock, BT_OPEN); in rfcomm_accept_connection()
1943 s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, in rfcomm_accept_connection()
1944 l2cap_pi(nsock->sk)->chan->imtu) - 5; in rfcomm_accept_connection()
1948 sock_release(nsock); in rfcomm_accept_connection()