/Zephyr-latest/subsys/net/lib/sockets/ |
D | sockets_service.c | 48 svc->pev[i].event.fd = -1; in cleanup_svc_events() 49 svc->pev[i].event.events = 0; in cleanup_svc_events() 86 svc->pev[i].event = fds[i]; in z_impl_net_socket_service_register() 87 svc->pev[i].user_data = user_data; in z_impl_net_socket_service_register() 102 struct zsock_pollfd *pev, in find_svc_and_event() argument 107 if (svc->pev[i].event.fd == pev->fd) { in find_svc_and_event() 108 *event = &svc->pev[i]; in find_svc_and_event() 122 void net_socket_service_callback(struct net_socket_service_event *pev) in net_socket_service_callback() argument 124 struct net_socket_service_desc *svc = pev->svc; in net_socket_service_callback() 125 struct net_socket_service_event ev = *pev; in net_socket_service_callback() [all …]
|
D | socketpair.c | 753 struct k_poll_event **pev, in zsock_poll_prepare_ctx() argument 769 if (*pev == pev_end) { in zsock_poll_prepare_ctx() 775 (*pev)->obj = &spair->readable; in zsock_poll_prepare_ctx() 786 if (*pev == pev_end) { in zsock_poll_prepare_ctx() 805 (*pev)->obj = &remote->writeable; in zsock_poll_prepare_ctx() 808 (*pev)->type = K_POLL_TYPE_SIGNAL; in zsock_poll_prepare_ctx() 809 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zsock_poll_prepare_ctx() 810 (*pev)->state = K_POLL_STATE_NOT_READY; in zsock_poll_prepare_ctx() 812 (*pev)++; in zsock_poll_prepare_ctx() 827 struct k_poll_event **pev) in zsock_poll_update_ctx() argument [all …]
|
D | sockets_inet.c | 1514 struct k_poll_event **pev, in zsock_poll_prepare_ctx() argument 1518 if (*pev == pev_end) { in zsock_poll_prepare_ctx() 1522 (*pev)->obj = &ctx->recv_q; in zsock_poll_prepare_ctx() 1523 (*pev)->type = K_POLL_TYPE_FIFO_DATA_AVAILABLE; in zsock_poll_prepare_ctx() 1524 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zsock_poll_prepare_ctx() 1525 (*pev)->state = K_POLL_STATE_NOT_READY; in zsock_poll_prepare_ctx() 1526 (*pev)++; in zsock_poll_prepare_ctx() 1533 if (*pev == pev_end) { in zsock_poll_prepare_ctx() 1538 (*pev)->obj = net_tcp_conn_sem_get(ctx); in zsock_poll_prepare_ctx() 1540 (*pev)->obj = net_tcp_tx_sem_get(ctx); in zsock_poll_prepare_ctx() [all …]
|
D | sockets_tls.c | 2996 struct k_poll_event **pev, in ztls_poll_prepare_ctx() argument 3011 (*pev)->obj = &ctx->tls_established; in ztls_poll_prepare_ctx() 3012 (*pev)->type = K_POLL_TYPE_SEM_AVAILABLE; in ztls_poll_prepare_ctx() 3013 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in ztls_poll_prepare_ctx() 3014 (*pev)->state = K_POLL_STATE_NOT_READY; in ztls_poll_prepare_ctx() 3015 (*pev)++; in ztls_poll_prepare_ctx() 3033 pfd, pev, pev_end); in ztls_poll_prepare_ctx() 3210 struct k_poll_event **pev) in ztls_poll_update_ctx() argument 3228 ((*pev)->obj == &ctx->tls_established)) { in ztls_poll_update_ctx() 3232 if ((*pev)->state != K_POLL_STATE_NOT_READY) { in ztls_poll_update_ctx() [all …]
|
/Zephyr-latest/lib/os/zvfs/ |
D | zvfs_eventfd.c | 52 struct k_poll_event **pev, in zvfs_eventfd_poll_prepare() argument 56 if (*pev == pev_end) { in zvfs_eventfd_poll_prepare() 61 (*pev)->obj = &efd->read_sig; in zvfs_eventfd_poll_prepare() 62 (*pev)->type = K_POLL_TYPE_SIGNAL; in zvfs_eventfd_poll_prepare() 63 (*pev)->mode = K_POLL_MODE_NOTIFY_ONLY; in zvfs_eventfd_poll_prepare() 64 (*pev)->state = K_POLL_STATE_NOT_READY; in zvfs_eventfd_poll_prepare() 65 (*pev)++; in zvfs_eventfd_poll_prepare() 69 if (*pev == pev_end) { in zvfs_eventfd_poll_prepare() 74 (*pev)->obj = &efd->write_sig; in zvfs_eventfd_poll_prepare() 75 (*pev)->type = K_POLL_TYPE_SIGNAL; in zvfs_eventfd_poll_prepare() [all …]
|
D | zvfs_poll.c | 27 struct k_poll_event *pev; in zvfs_poll_internal() local 38 pev = poll_events; in zvfs_poll_internal() 56 result = zvfs_fdtable_call_ioctl(vtable, ctx, ZFD_IOCTL_POLL_PREPARE, pfd, &pev, in zvfs_poll_internal() 109 ret = k_poll(poll_events, pev - poll_events, timeout); in zvfs_poll_internal() 119 pev = poll_events; in zvfs_poll_internal() 140 &pev); in zvfs_poll_internal()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_tcp_receiver.c | 42 static void tcp_svc_handler(struct net_socket_service_event *pev); 124 static int tcp_recv_data(struct net_socket_service_event *pev) in tcp_recv_data() argument 137 if ((pev->event.revents & ZSOCK_POLLERR) || in tcp_recv_data() 138 (pev->event.revents & ZSOCK_POLLNVAL)) { in tcp_recv_data() 139 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data() 141 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in tcp_recv_data() 149 if (!(pev->event.revents & ZSOCK_POLLIN)) { in tcp_recv_data() 157 if (fds[SOCK_ID_IPV4_LISTEN].fd == pev->event.fd || in tcp_recv_data() 158 fds[SOCK_ID_IPV6_LISTEN].fd == pev->event.fd) { in tcp_recv_data() 159 sock = zsock_accept(pev->event.fd, in tcp_recv_data() [all …]
|
D | zperf_udp_receiver.c | 49 static void udp_svc_handler(struct net_socket_service_event *pev); 315 static int udp_recv_data(struct net_socket_service_event *pev) in udp_recv_data() argument 328 if ((pev->event.revents & ZSOCK_POLLERR) || in udp_recv_data() 329 (pev->event.revents & ZSOCK_POLLNVAL)) { in udp_recv_data() 330 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data() 332 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data() 340 if (!(pev->event.revents & ZSOCK_POLLIN)) { in udp_recv_data() 344 ret = zsock_recvfrom(pev->event.fd, buf, sizeof(buf), 0, in udp_recv_data() 348 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in udp_recv_data() 355 udp_received(pev->event.fd, &addr, buf, ret); in udp_recv_data() [all …]
|
/Zephyr-latest/samples/net/sockets/echo_service/src/ |
D | main.c | 34 static void receive_data(bool is_udp, struct net_socket_service_event *pev, 37 static void tcp_service_handler(struct net_socket_service_event *pev) in tcp_service_handler() argument 46 receive_data(false, pev, buf, sizeof(buf)); in tcp_service_handler() 49 static void udp_service_handler(struct net_socket_service_event *pev) in udp_service_handler() argument 53 receive_data(true, pev, buf, sizeof(buf)); in udp_service_handler() 59 static void receive_data(bool is_udp, struct net_socket_service_event *pev, in receive_data() argument 62 struct pollfd *pfd = &pev->event; in receive_data()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dispatcher.c | 121 static int recv_data(struct net_socket_service_event *pev) in recv_data() argument 123 struct socket_dispatch_table *table = pev->user_data; in recv_data() 132 dispatcher = table[pev->event.fd].ctx; in recv_data() 136 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data() 139 if ((pev->event.revents & ZSOCK_POLLERR) || in recv_data() 140 (pev->event.revents & ZSOCK_POLLNVAL)) { in recv_data() 141 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data() 161 ret = zsock_recvfrom(pev->event.fd, dns_data->data, in recv_data() 173 ret = dns_dispatch(dispatcher, pev->event.fd, in recv_data() 187 void dns_dispatcher_svc_handler(struct net_socket_service_event *pev) in dns_dispatcher_svc_handler() argument [all …]
|
D | llmnr_responder.c | 70 static void svc_handler(struct net_socket_service_event *pev); 514 static int recv_data(struct net_socket_service_event *pev) in recv_data() argument 524 if ((pev->event.revents & ZSOCK_POLLERR) || in recv_data() 525 (pev->event.revents & ZSOCK_POLLNVAL)) { in recv_data() 526 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data() 528 (void)zsock_getsockopt(pev->event.fd, SOL_SOCKET, in recv_data() 542 ret = zsock_recvfrom(pev->event.fd, dns_data->data, in recv_data() 554 ret = dns_read(pev->event.fd, dns_data, len, in recv_data() 567 static void svc_handler(struct net_socket_service_event *pev) in svc_handler() argument 571 ret = recv_data(pev); in svc_handler()
|
D | mdns_responder.c | 52 extern void dns_dispatcher_svc_handler(struct net_socket_service_event *pev); 707 svc->pev[0].event.fd = ctx->sock; in register_dispatcher()
|
D | resolve.c | 39 extern void dns_dispatcher_svc_handler(struct net_socket_service_event *pev);
|
/Zephyr-latest/include/zephyr/net/ |
D | socket_service.h | 43 typedef void (*net_socket_service_handler_t)(struct net_socket_service_event *pev); 79 struct net_socket_service_event *pev; member 110 .pev = __z_net_socket_svc_get_name(_name), \
|
/Zephyr-latest/drivers/modem/ |
D | modem_socket.c | 342 struct zsock_pollfd *pfd, struct k_poll_event **pev, in modem_socket_poll_prepare() argument 346 if (*pev == pev_end) { in modem_socket_poll_prepare() 351 k_poll_event_init(*pev, K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, in modem_socket_poll_prepare() 353 (*pev)++; in modem_socket_poll_prepare() 357 if (*pev == pev_end) { in modem_socket_poll_prepare() 370 struct k_poll_event **pev) in modem_socket_poll_update() argument 375 if ((*pev)->state != K_POLL_STATE_NOT_READY) { in modem_socket_poll_update() 378 (*pev)++; in modem_socket_poll_update() 386 (*pev)++; in modem_socket_poll_update()
|
D | modem_socket.h | 83 struct k_poll_event **pev); 85 struct zsock_pollfd *pfd, struct k_poll_event **pev,
|
D | quectel-bg9x.c | 659 struct k_poll_event **pev; in offload_ioctl() local 663 pev = va_arg(args, struct k_poll_event **); in offload_ioctl() 666 return modem_socket_poll_prepare(&mdata.socket_config, obj, pfd, pev, pev_end); in offload_ioctl() 670 struct k_poll_event **pev; in offload_ioctl() local 673 pev = va_arg(args, struct k_poll_event **); in offload_ioctl() 675 return modem_socket_poll_update(obj, pfd, pev); in offload_ioctl()
|
D | ublox-sara-r4.c | 1717 struct k_poll_event **pev; in offload_ioctl() local 1721 pev = va_arg(args, struct k_poll_event **); in offload_ioctl() 1724 return modem_socket_poll_prepare(&mdata.socket_config, obj, pfd, pev, pev_end); in offload_ioctl() 1728 struct k_poll_event **pev; in offload_ioctl() local 1731 pev = va_arg(args, struct k_poll_event **); in offload_ioctl() 1733 return modem_socket_poll_update(obj, pfd, pev); in offload_ioctl()
|
/Zephyr-latest/tests/net/socket/service/src/ |
D | main.c | 34 static void server_handler(struct net_socket_service_event *pev) in server_handler() argument 36 ARG_UNUSED(pev); in server_handler() 41 static void tcp_server_handler(struct net_socket_service_event *pev) in tcp_server_handler() argument 43 ARG_UNUSED(pev); in tcp_server_handler()
|
/Zephyr-latest/drivers/net/ |
D | nsos_sockets.c | 289 struct k_poll_event **pev, struct k_poll_event *pev_end, in nsos_poll_prepare() argument 299 if (*pev == pev_end) { in nsos_poll_prepare() 304 k_poll_event_init(*pev, K_POLL_TYPE_SIGNAL, K_POLL_MODE_NOTIFY_ONLY, &poll->signal); in nsos_poll_prepare() 311 (*pev)++; in nsos_poll_prepare() 326 struct k_poll_event **pev, struct nsos_socket_poll *poll) in nsos_poll_update() argument 331 (*pev)++; in nsos_poll_update() 361 struct k_poll_event **pev; in nsos_ioctl() local 365 pev = va_arg(args, struct k_poll_event **); in nsos_ioctl() 368 return nsos_poll_prepare(obj, pfd, pev, pev_end, &sock->poll); in nsos_ioctl() 373 struct k_poll_event **pev; in nsos_ioctl() local [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | sockets.c | 102 NET_ASSERT(svc->pev != NULL); in walk_socket_services() 106 "%d,", svc->pev[i].event.fd); in walk_socket_services()
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-4.0.rst | 516 ``struct net_socket_service_event *pev`` parameter. (:github:`80041`)
|