Home
last modified time | relevance | path

Searched full:listener (Results 1 – 25 of 149) sorted by relevance

123456

/linux-6.8/drivers/s390/char/
Dsclp_sd.c65 * struct sclp_sd_listener - Listener for asynchronous Store Data response
102 * sclp_sd_listener_add() - Add listener for Store Data responses
103 * @listener: Listener to add
105 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()
113 * sclp_sd_listener_remove() - Remove listener for Store Data responses
114 * @listener: Listener to remove
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()
124 * sclp_sd_listener_init() - Initialize a Store Data response listener
[all …]
/linux-6.8/drivers/infiniband/hw/irdma/
Dtrace_cm.h42 TP_PROTO(struct irdma_cm_listener *listener, void *caller),
43 TP_ARGS(listener, caller),
51 TP_fast_assign(__entry->iwdev = listener->iwdev;
52 __entry->lport = listener->loc_port;
53 __entry->ipv4 = listener->ipv4;
55 listener->loc_addr, 4);
66 TP_PROTO(struct irdma_cm_listener *listener),
67 TP_ARGS(listener),
76 TP_fast_assign(__entry->iwdev = listener->iwdev;
77 __entry->lport = listener->loc_port;
[all …]
Dcm.c1460 * @dst_addr: listener ip addr
1462 * @dst_port: listener tcp port num
1686 ibdev_dbg(&iwdev->ibdev, "CM: Allocating child listener %p\n", in irdma_add_mqh_6()
1689 ibdev_dbg(&iwdev->ibdev, "CM: listener memory allocation\n"); in irdma_add_mqh_6()
1770 "CM: Allocating child CM Listener forIP=%pI4, vlan_id=%d, MAC=%pM\n", in irdma_add_mqh_4()
1775 ibdev_dbg(&iwdev->ibdev, "CM: Allocating child listener %p\n", in irdma_add_mqh_4()
1778 ibdev_dbg(&iwdev->ibdev, "CM: listener memory allocation\n"); in irdma_add_mqh_4()
1845 * @listener: pointer to listener node
1849 struct irdma_cm_listener *listener, in irdma_reset_list_prep() argument
1856 if (cm_node->listener == listener && in irdma_reset_list_prep()
[all …]
/linux-6.8/tools/testing/selftests/net/
Damt.sh7 # There are four network-namespaces, LISTENER, SOURCE, GATEWAY, RELAY.
8 # The role of LISTENER is to listen multicast traffic.
10 # The role of SOURCE is to send multicast traffic to listener.
16 # | LISTENER netns |
76 readonly LISTENER=$(mktemp -u listener-XXXXXXXX)
94 ip netns add "${LISTENER}" || exit_cleanup
95 ip netns add "${GATEWAY}" || exit_cleanup "${LISTENER}"
96 ip netns add "${RELAY}" || exit_cleanup "${LISTENER}" "${GATEWAY}"
97 ip netns add "${SOURCE}" || exit_cleanup "${LISTENER}" "${GATEWAY}" \
105 exit_cleanup "${LISTENER}" "${GATEWAY}" "${RELAY}" "${SOURCE}"
[all …]
/linux-6.8/samples/seccomp/
Duser-trap.c105 struct seccomp_notif_resp *resp, int listener) in handle_req() argument
138 * ask the listener fd this as follows. in handle_req()
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()
234 * Send the listener to the parent; also serves as in main()
237 if (send_fd(sk_pair[1], listener) < 0) in main()
239 close(listener); in main()
271 * Get the listener from the child. in main()
[all …]
/linux-6.8/net/core/
Drequest_sock.c55 * listener is closed before the child is accepted.
58 * (or aborted) and the child socket has been accepted (or listener closed).
67 * both its child socket through fastopen_rsk, and a listener socket through
69 * lock per listener "icsk->icsk_accept_queue.fastopenq->lock" is created.
70 * only in the rare case when both the listener and the child locks are held,
76 * from the listener. But first socket lock is difficult to use. It is not
80 * acquire a child's lock while holding listener's socket lock. A corner
85 * treq->tfo_listener is used by the listener so it is protected by the
104 /* If the listener has been closed don't bother with the in reqsk_fastopen_remove()
/linux-6.8/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3365 int status, listener; in TEST() local
3386 /* Check that we get -ENOSYS with no listener attached */ in TEST()
3405 listener = user_notif_syscall(__NR_getppid, in TEST()
3407 ASSERT_GE(listener, 0); in TEST()
3409 /* Installing a second listener in the chain should EBUSY */ in TEST()
3423 pollfd.fd = listener; in TEST()
3433 ret = ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req); in TEST()
3439 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req), 0); in TEST()
3442 pollfd.fd = listener; in TEST()
3456 EXPECT_EQ(ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp), -1); in TEST()
[all …]
/linux-6.8/tools/perf/bench/
Dsched-seccomp-notify.c68 static void user_notification_sync_loop(int listener) in user_notification_sync_loop() argument
76 if (ioctl(listener, SECCOMP_IOCTL_NOTIF_RECV, &req)) in user_notification_sync_loop()
86 if (ioctl(listener, SECCOMP_IOCTL_NOTIF_SEND, &resp)) in user_notification_sync_loop()
99 int status, listener; in bench_sched_seccomp_notify() local
108 listener = user_notif_syscall(__NR_gettid, in bench_sched_seccomp_notify()
110 if (listener < 0) in bench_sched_seccomp_notify()
129 if (ioctl(listener, SECCOMP_IOCTL_NOTIF_SET_FLAGS, in bench_sched_seccomp_notify()
134 user_notification_sync_loop(listener); in bench_sched_seccomp_notify()
/linux-6.8/include/net/netfilter/
Dnf_tproxy.h46 * redirect the new connection to the proxy if there's a listener
51 * Returns the listener socket if there's one, the TIME_WAIT socket if
52 * no such listener is found, or NULL if the TCP header is incomplete.
72 * does not really matter if the listener is bound to an interface
105 * redirect the new connection to the proxy if there's a listener
110 * Returns the listener socket if there's one, the TIME_WAIT socket if
111 * no such listener is found, or NULL if the TCP header is incomplete.
/linux-6.8/drivers/uio/
Duio.c464 struct uio_listener *listener; in uio_open() local
482 listener = kmalloc(sizeof(*listener), GFP_KERNEL); in uio_open()
483 if (!listener) { in uio_open()
488 listener->dev = idev; in uio_open()
489 listener->event_count = atomic_read(&idev->event); in uio_open()
490 filep->private_data = listener; in uio_open()
508 kfree(listener); in uio_open()
522 struct uio_listener *listener = filep->private_data; in uio_fasync() local
523 struct uio_device *idev = listener->dev; in uio_fasync()
531 struct uio_listener *listener = filep->private_data; in uio_release() local
[all …]
/linux-6.8/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
672 "Create Listener address: %pISpc\n", &cm_id->local_addr); in qedr_iw_create_listen()
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()
[all …]
/linux-6.8/net/vmw_vsock/
Daf_vsock.c30 * - "Server" sockets are referred to as listener sockets throughout this
34 * sockets are placed on the pending connection list of the listener socket.
35 * When future packets are received for the address the listener socket is
39 * from the listener socket's pending list and enqueued in the listener
41 * from the listener socket's accept queue. If the socket cannot be accepted
58 * lock_sock(listener);
72 * and the listener socket's pending list and connected queue) ensures a
364 void vsock_add_pending(struct sock *listener, struct sock *pending) in vsock_add_pending() argument
369 vlistener = vsock_sk(listener); in vsock_add_pending()
373 sock_hold(listener); in vsock_add_pending()
[all …]
/linux-6.8/tools/testing/selftests/net/mptcp/
Duserspace_pm.sh589 # Attempt to add a listener at 10.0.2.2:<subflow-port>
607 # Delete the listener from the client ns, if one was created
626 # Attempt to add a listener at dead:beef:2::2:<subflow-port>
646 # Delete the listener from the client ns, if one was created
665 # Attempt to add a listener at 10.0.2.2:<new-port>
685 # Delete the listener from the client ns, if one was created
705 # Attempt to add a listener at 10.0.2.1:<subflow-port>
723 # Delete the listener from the server ns, if one was created
741 # Attempt to add a listener at dead:beef:2::1:<subflow-port>
762 # Delete the listener from the server ns, if one was created
[all …]
/linux-6.8/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
/linux-6.8/include/net/
Drequest_sock.h139 * For a TCP Fast Open listener -
141 * the listener and the child socket.
148 * a listener is stopped. But TFO related fields may continue to be
149 * accessed even after a listener is closed, until its sk_refcnt drops
152 * complexity that needs to be resolved. E.g., a listener can be disabled
Daf_vsock.h49 struct sock *listener; member
207 void vsock_add_pending(struct sock *listener, struct sock *pending);
208 void vsock_remove_pending(struct sock *listener, struct sock *pending);
209 void vsock_enqueue_accept(struct sock *listener, struct sock *connected);
/linux-6.8/drivers/net/ethernet/mellanox/mlxsw/
Dcore.c2491 * listener for it. in mlxsw_core_event_listener_register()
2523 const struct mlxsw_listener *listener, in mlxsw_core_listener_register() argument
2526 if (listener->is_event) { in mlxsw_core_listener_register()
2529 &listener->event_listener, in mlxsw_core_listener_register()
2533 &listener->rx_listener, in mlxsw_core_listener_register()
2539 const struct mlxsw_listener *listener, in mlxsw_core_listener_unregister() argument
2542 if (listener->is_event) in mlxsw_core_listener_unregister()
2544 &listener->event_listener); in mlxsw_core_listener_unregister()
2547 &listener->rx_listener); in mlxsw_core_listener_unregister()
2551 const struct mlxsw_listener *listener, void *priv) in mlxsw_core_trap_register() argument
[all …]
/linux-6.8/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.c1633 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()
1658 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "listener found = %p\n", in qed_iwarp_get_listener()
1659 listener); in qed_iwarp_get_listener()
1660 return listener; in qed_iwarp_get_listener()
1663 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "listener not found\n"); in qed_iwarp_get_listener()
[all …]
/linux-6.8/net/rds/
Drdma_transport.c40 /* Global IPv4 and IPv6 RDS RDMA listener cm_id */
208 printk(KERN_ERR "RDS/RDMA: failed to setup listener, " in rds_rdma_listen_init_common()
219 printk(KERN_ERR "RDS/RDMA: failed to setup listener, " in rds_rdma_listen_init_common()
226 printk(KERN_ERR "RDS/RDMA: failed to setup listener, " in rds_rdma_listen_init_common()
275 rdsdebug("Cannot set up IPv6 RDMA listener\n"); in rds_rdma_listen_init()
/linux-6.8/net/mptcp/
Dsubflow.c143 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk_listener); in subflow_check_req() local
148 pr_debug("subflow_req=%p, listener=%p", subflow_req, listener); in subflow_check_req()
171 if (opt_mp_capable && listener->request_mptcp) { in subflow_check_req()
202 } else if (opt_mp_join && listener->request_mptcp) { in subflow_check_req()
248 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk_listener); in mptcp_subflow_init_cookie_req() local
262 if (opt_mp_capable && listener->request_mptcp) { in mptcp_subflow_init_cookie_req()
273 } else if (opt_mp_join && listener->request_mptcp) { in mptcp_subflow_init_cookie_req()
773 struct mptcp_subflow_context *listener = mptcp_subflow_ctx(sk); in subflow_syn_recv_sock() local
780 pr_debug("listener=%p, req=%p, conn=%p", listener, req, listener->conn); in subflow_syn_recv_sock()
820 child = listener->icsk_af_ops->syn_recv_sock(sk, skb, req, dst, in subflow_syn_recv_sock()
[all …]
/linux-6.8/Documentation/netlink/specs/
Dmptcp_pm.yaml74 name: listener-created
78 A new PM listener is created.
80 name: listener-closed
83 A PM listener is closed.
/linux-6.8/arch/m68k/mac/
Diop.c43 * of device names to the listener functions ala the interrupt
142 struct listener { struct
162 static struct listener iop_listeners[NUM_IOPS][NUM_IOP_CHAN]; argument
303 * Register or unregister a listener for a specific IOP and channel
305 * If the handler pointer is NULL the current listener (if any) is
306 * unregistered. Otherwise the new listener is registered provided
307 * there is no existing listener registered.
431 /* If there is a listener, call it now. Otherwise complete */ in iop_handle_recv()
/linux-6.8/net/tipc/
Dtopsrv.c64 * @listener: topsrv listener socket
75 struct socket *listener; member
464 if (!srv->listener) { in tipc_topsrv_accept()
468 lsock = srv->listener; in tipc_topsrv_accept()
522 srv->listener = lsock; in tipc_topsrv_create_listener()
699 struct socket *lsock = srv->listener; in tipc_topsrv_stop()
714 srv->listener = NULL; in tipc_topsrv_stop()
/linux-6.8/tools/testing/selftests/bpf/prog_tests/
Dmigrate_reuseport.c356 * to the last listener based on eBPF. in migrate_dance()
368 /* Note that we use the second listener instead of the in migrate_dance()
371 * The fist listener is bind()ed with port 0 and, in migrate_dance()
373 * calling listen() again will bind() the first listener in migrate_dance()
379 * resurrect the listener on the existing reuseport group. in migrate_dance()
385 /* Migrate from the last listener to the second one. in migrate_dance()
/linux-6.8/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_control.sh277 # MLD Multicast Listener Query (Type 130)
278 devlink_trap_stats_test "MLD Multicast Listener Query" "mld_query" \
285 # MLD Version 1 Multicast Listener Report (Type 131)
286 devlink_trap_stats_test "MLD Version 1 Multicast Listener Report" \
293 # MLD Version 2 Multicast Listener Report (Type 143)
294 devlink_trap_stats_test "MLD Version 2 Multicast Listener Report" \
301 # MLD Version 1 Multicast Listener Done (Type 132)
302 devlink_trap_stats_test "MLD Version 1 Multicast Listener Done" \

123456