Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/s390/char/
Dsclp_sd.c105 static void sclp_sd_listener_add(struct sclp_sd_listener *listener) in sclp_sd_listener_add() argument
108 list_add_tail(&listener->list, &sclp_sd_queue); in sclp_sd_listener_add()
116 static void sclp_sd_listener_remove(struct sclp_sd_listener *listener) in sclp_sd_listener_remove() argument
119 list_del(&listener->list); in sclp_sd_listener_remove()
131 static void sclp_sd_listener_init(struct sclp_sd_listener *listener, u32 id) in sclp_sd_listener_init() argument
133 memset(listener, 0, sizeof(*listener)); in sclp_sd_listener_init()
134 listener->id = id; in sclp_sd_listener_init()
135 init_completion(&listener->completion); in sclp_sd_listener_init()
147 struct sclp_sd_listener *listener; in sclp_sd_receiver() local
152 list_for_each_entry(listener, &sclp_sd_queue, list) { in sclp_sd_receiver()
[all …]
/kernel/linux/linux-5.10/samples/seccomp/
Duser-trap.c105 struct seccomp_notif_resp *resp, int listener) in handle_req() argument
145 if (ioctl(listener, SECCOMP_IOCTL_NOTIF_ID_VALID, &req->id) < 0) { in handle_req()
203 int sk_pair[2], ret = 1, status, listener; in main() local
218 listener = user_trap_syscall(__NR_mount, in main()
220 if (listener < 0) { in main()
237 if (send_fd(sk_pair[1], listener) < 0) in main()
239 close(listener); in main()
273 listener = recv_fd(sk_pair[0]); in main()
274 if (listener < 0) in main()
309 if (ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, req)) { in main()
[all …]
/kernel/linux/linux-5.10/drivers/uio/
Duio.c462 struct uio_listener *listener; in uio_open() local
480 listener = kmalloc(sizeof(*listener), GFP_KERNEL); in uio_open()
481 if (!listener) { in uio_open()
486 listener->dev = idev; in uio_open()
487 listener->event_count = atomic_read(&idev->event); in uio_open()
488 filep->private_data = listener; in uio_open()
506 kfree(listener); in uio_open()
520 struct uio_listener *listener = filep->private_data; in uio_fasync() local
521 struct uio_device *idev = listener->dev; in uio_fasync()
529 struct uio_listener *listener = filep->private_data; in uio_release() local
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3292 int status, listener; in TEST() local
3332 listener = user_notif_syscall(__NR_getppid, in TEST()
3334 ASSERT_GE(listener, 0); in TEST()
3350 pollfd.fd = listener; in TEST()
3360 ret = ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req); in TEST()
3366 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0); in TEST()
3369 pollfd.fd = listener; in TEST()
3383 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), -1); in TEST()
3387 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), 0); in TEST()
3421 int listener; in TEST() local
[all …]
/kernel/linux/linux-5.10/net/vmw_vsock/
Daf_vsock.c358 void vsock_add_pending(struct sock *listener, struct sock *pending) in vsock_add_pending() argument
363 vlistener = vsock_sk(listener); in vsock_add_pending()
367 sock_hold(listener); in vsock_add_pending()
372 void vsock_remove_pending(struct sock *listener, struct sock *pending) in vsock_remove_pending() argument
377 sock_put(listener); in vsock_remove_pending()
382 void vsock_enqueue_accept(struct sock *listener, struct sock *connected) in vsock_enqueue_accept() argument
387 vlistener = vsock_sk(listener); in vsock_enqueue_accept()
391 sock_hold(listener); in vsock_enqueue_accept()
502 static struct sock *vsock_dequeue_accept(struct sock *listener) in vsock_dequeue_accept() argument
507 vlistener = vsock_sk(listener); in vsock_dequeue_accept()
[all …]
Dvmci_transport.c479 struct sock *listener, in vmci_transport_get_pending() argument
489 vlistener = vsock_sk(listener); in vmci_transport_get_pending()
1122 vpending->listener = sk; in vmci_transport_recv_listen()
1132 vmci_transport_recv_connecting_server(struct sock *listener, in vmci_transport_recv_connecting_server() argument
1253 vsock_remove_pending(listener, pending); in vmci_transport_recv_connecting_server()
1254 vsock_enqueue_accept(listener, pending); in vmci_transport_recv_connecting_server()
1259 listener->sk_data_ready(listener); in vmci_transport_recv_connecting_server()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c106 struct qedr_iw_listener *listener = (struct qedr_iw_listener *)context; in qedr_iw_mpa_request() local
107 struct qedr_dev *dev = listener->dev; in qedr_iw_mpa_request()
135 listener->cm_id->event_handler(listener->cm_id, &event); in qedr_iw_mpa_request()
660 struct qedr_iw_listener *listener; in qedr_iw_create_listen() local
674 listener = kzalloc(sizeof(*listener), GFP_KERNEL); in qedr_iw_create_listen()
675 if (!listener) in qedr_iw_create_listen()
678 listener->dev = dev; in qedr_iw_create_listen()
680 listener->cm_id = cm_id; in qedr_iw_create_listen()
681 listener->backlog = backlog; in qedr_iw_create_listen()
683 iparams.cb_context = listener; in qedr_iw_create_listen()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_cm.c1841 struct i40iw_cm_listener *listener, in i40iw_dec_refcnt_listen() argument
1862 if ((cm_node->listener == listener) && in i40iw_dec_refcnt_listen()
1910 if (!atomic_dec_return(&listener->ref_count)) { in i40iw_dec_refcnt_listen()
1912 list_del(&listener->list); in i40iw_dec_refcnt_listen()
1915 if (listener->iwdev) { in i40iw_dec_refcnt_listen()
1917 i40iw_manage_apbvt(listener->iwdev, in i40iw_dec_refcnt_listen()
1918 listener->loc_port, in i40iw_dec_refcnt_listen()
1921 memcpy(nfo.loc_addr, listener->loc_addr, sizeof(nfo.loc_addr)); in i40iw_dec_refcnt_listen()
1922 nfo.loc_port = listener->loc_port; in i40iw_dec_refcnt_listen()
1923 nfo.ipv4 = listener->ipv4; in i40iw_dec_refcnt_listen()
[all …]
/kernel/linux/linux-5.10/include/net/
Daf_vsock.h48 struct sock *listener; member
190 void vsock_add_pending(struct sock *listener, struct sock *pending);
191 void vsock_remove_pending(struct sock *listener, struct sock *pending);
192 void vsock_enqueue_accept(struct sock *listener, struct sock *connected);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c2277 const struct mlxsw_listener *listener, in mlxsw_core_listener_register() argument
2280 if (listener->is_event) { in mlxsw_core_listener_register()
2283 &listener->event_listener, in mlxsw_core_listener_register()
2287 &listener->rx_listener, in mlxsw_core_listener_register()
2293 const struct mlxsw_listener *listener, in mlxsw_core_listener_unregister() argument
2296 if (listener->is_event) in mlxsw_core_listener_unregister()
2298 &listener->event_listener); in mlxsw_core_listener_unregister()
2301 &listener->rx_listener); in mlxsw_core_listener_unregister()
2305 const struct mlxsw_listener *listener, void *priv) in mlxsw_core_trap_register() argument
2312 err = mlxsw_core_listener_register(mlxsw_core, listener, priv, in mlxsw_core_trap_register()
[all …]
Dspectrum_trap.c1264 mlxsw_sp_trap_listener_is_valid(const struct mlxsw_listener *listener) in mlxsw_sp_trap_listener_is_valid() argument
1266 return listener->trap_id != 0; in mlxsw_sp_trap_listener_is_valid()
1403 const struct mlxsw_listener *listener; in mlxsw_sp_trap_init() local
1406 listener = &trap_item->listeners_arr[i]; in mlxsw_sp_trap_init()
1407 if (!mlxsw_sp_trap_listener_is_valid(listener)) in mlxsw_sp_trap_init()
1409 err = mlxsw_core_trap_register(mlxsw_core, listener, trap_ctx); in mlxsw_sp_trap_init()
1429 const struct mlxsw_listener *listener; in mlxsw_sp_trap_fini() local
1431 listener = &trap_item->listeners_arr[i]; in mlxsw_sp_trap_fini()
1432 if (!mlxsw_sp_trap_listener_is_valid(listener)) in mlxsw_sp_trap_fini()
1434 mlxsw_core_trap_unregister(mlxsw_core, listener, trap_ctx); in mlxsw_sp_trap_fini()
[all …]
Dcore.h155 const struct mlxsw_listener *listener,
158 const struct mlxsw_listener *listener,
161 const struct mlxsw_listener *listener,
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.c1631 struct qed_iwarp_listener *listener = NULL; in qed_iwarp_get_listener() local
1637 list_for_each_entry(listener, in qed_iwarp_get_listener()
1640 if (listener->port == cm_info->local_port) { in qed_iwarp_get_listener()
1641 if (!memcmp(listener->ip_addr, in qed_iwarp_get_listener()
1647 if (!memcmp(listener->ip_addr, in qed_iwarp_get_listener()
1650 (listener->vlan == cm_info->vlan)) { in qed_iwarp_get_listener()
1659 listener); in qed_iwarp_get_listener()
1660 return listener; in qed_iwarp_get_listener()
2358 struct qed_iwarp_listener *listener; in qed_iwarp_ll2_comp_syn_pkt() local
2396 listener = qed_iwarp_get_listener(p_hwfn, &cm_info); in qed_iwarp_ll2_comp_syn_pkt()
[all …]
/kernel/linux/linux-5.10/Documentation/accounting/
Dtaskstats.rst35 To obtain statistics for tasks which are exiting, the userspace listener
38 registered listener. Using cpumasks allows the data received by one listener
163 When the rate of task exits becomes large, a listener may not be able to keep
174 each listener. In the extreme case, there could be one listener for each cpu.
175 Users may also consider setting the cpu affinity of the listener to the subset
/kernel/linux/linux-5.10/net/tipc/
Dtopsrv.c74 struct socket *listener; member
461 if (!srv->listener) { in tipc_topsrv_accept()
465 lsock = srv->listener; in tipc_topsrv_accept()
517 srv->listener = lsock; in tipc_topsrv_create_listener()
694 struct socket *lsock = srv->listener; in tipc_topsrv_stop()
709 srv->listener = NULL; in tipc_topsrv_stop()
/kernel/linux/linux-5.10/net/mptcp/
Dsubflow.c118 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk_listener); in subflow_init_req() local
123 pr_debug("subflow_req=%p, listener=%p", subflow_req, listener); in subflow_init_req()
140 if (mp_opt.mp_capable && listener->request_mptcp) { in subflow_init_req()
168 } else if (mp_opt.mp_join && listener->request_mptcp) { in subflow_init_req()
191 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk_listener); in mptcp_subflow_init_cookie_req() local
205 if (mp_opt.mp_capable && listener->request_mptcp) { in mptcp_subflow_init_cookie_req()
216 } else if (mp_opt.mp_join && listener->request_mptcp) { in mptcp_subflow_init_cookie_req()
532 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk); in subflow_syn_recv_sock() local
539 pr_debug("listener=%p, req=%p, conn=%p", listener, req, listener->conn); in subflow_syn_recv_sock()
569 new_msk = mptcp_sk_clone(listener->conn, &mp_opt, req); in subflow_syn_recv_sock()
[all …]
/kernel/linux/linux-5.10/kernel/
Dtaskstats.c47 struct listener { struct
113 struct listener *s, *tmp; in send_cpu_listeners()
277 struct listener *s, *tmp, *s2; in add_del_listener()
292 s = kmalloc_node(sizeof(struct listener), in add_del_listener()
Dseccomp.c1552 int listener = -1; in seccomp_set_mode_filter() local
1577 listener = get_unused_fd_flags(O_CLOEXEC); in seccomp_set_mode_filter()
1578 if (listener < 0) { in seccomp_set_mode_filter()
1579 ret = listener; in seccomp_set_mode_filter()
1585 put_unused_fd(listener); in seccomp_set_mode_filter()
1625 put_unused_fd(listener); in seccomp_set_mode_filter()
1628 fd_install(listener, listener_f); in seccomp_set_mode_filter()
1629 ret = listener; in seccomp_set_mode_filter()
/kernel/linux/linux-5.10/include/net/phonet/
Dpep.h21 struct sock *listener; member
/kernel/linux/linux-5.10/fs/notify/fanotify/
DKconfig10 an open file descriptor to the userspace listener along with
/kernel/linux/linux-5.10/Documentation/admin-guide/nfs/
Dnfsd-admin-interfaces.rst23 udp and one tcp listener at port 2049 (see nfsd_init_socks).
/kernel/linux/linux-5.10/net/phonet/
Dpep.c858 newpn->listener = sk; in pep_sock_accept()
967 pn->listener = NULL; in pep_init()
1304 if (pn->listener != NULL) { in pep_sock_unhash()
1305 skparent = pn->listener; in pep_sock_unhash()
1306 pn->listener = NULL; in pep_sock_unhash()
/kernel/linux/linux-5.10/Documentation/networking/
Dxfrm_device.rst63 The XFRM code's listener will finish the setup on NETDEV_REGISTER.
149 As a netdev is set to DOWN the XFRM stack's netdev listener will call
/kernel/linux/linux-5.10/arch/m68k/mac/
Diop.c136 struct listener { struct
156 static struct listener iop_listeners[NUM_IOPS][NUM_IOP_CHAN]; argument
/kernel/linux/linux-5.10/Documentation/driver-api/media/
Dv4l2-event.rst117 add called when a new listener gets added (subscribing to the same
119 del called when a listener stops listening

12