Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/block/
Dnbd.c70 struct nbd_sock *nsock; member
290 static void nbd_mark_nsock_dead(struct nbd_device *nbd, struct nbd_sock *nsock, in nbd_mark_nsock_dead() argument
293 if (!nsock->dead && notify && !nbd_disconnected(nbd->config)) { in nbd_mark_nsock_dead()
302 if (!nsock->dead) { in nbd_mark_nsock_dead()
303 kernel_sock_shutdown(nsock->sock, SHUT_RDWR); in nbd_mark_nsock_dead()
314 nsock->dead = true; in nbd_mark_nsock_dead()
315 nsock->pending = NULL; in nbd_mark_nsock_dead()
316 nsock->sent = 0; in nbd_mark_nsock_dead()
375 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown() local
376 mutex_lock(&nsock->tx_lock); in sock_shutdown()
[all …]
/linux-6.6.21/net/bluetooth/bnep/
Dsock.c59 struct socket *nsock; in do_bnep_sock_ioctl() local
73 nsock = sockfd_lookup(ca.sock, &err); in do_bnep_sock_ioctl()
74 if (!nsock) in do_bnep_sock_ioctl()
77 if (nsock->sk->sk_state != BT_CONNECTED) { in do_bnep_sock_ioctl()
78 sockfd_put(nsock); in do_bnep_sock_ioctl()
83 err = bnep_add_connection(&ca, nsock); in do_bnep_sock_ioctl()
88 sockfd_put(nsock); in do_bnep_sock_ioctl()
/linux-6.6.21/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()
/linux-6.6.21/net/bluetooth/rfcomm/
Dcore.c1961 struct socket *sock = s->sock, *nsock; in rfcomm_accept_connection() local
1971 err = kernel_accept(sock, &nsock, O_NONBLOCK); in rfcomm_accept_connection()
1976 nsock->sk->sk_data_ready = rfcomm_l2data_ready; in rfcomm_accept_connection()
1977 nsock->sk->sk_state_change = rfcomm_l2state_change; in rfcomm_accept_connection()
1979 s = rfcomm_session_add(nsock, BT_OPEN); in rfcomm_accept_connection()
1983 s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, in rfcomm_accept_connection()
1984 l2cap_pi(nsock->sk)->chan->imtu) - 5; in rfcomm_accept_connection()
1988 sock_release(nsock); in rfcomm_accept_connection()