Lines Matching refs:events
32 struct zsock_pollfd events[CONFIG_ZVFS_POLL_MAX]; member
49 svc->pev[i].event.events = 0; in cleanup_svc_events()
92 zvfs_eventfd_write(ctx.events[0].fd, 1); in z_impl_net_socket_service_register()
133 ctx.events[get_idx(svc) + i] = svc->pev[i].event; in net_socket_service_callback()
194 if ((count + 1) > ARRAY_SIZE(ctx.events)) { in socket_service_thread()
197 count + 1, ARRAY_SIZE(ctx.events)); in socket_service_thread()
218 ctx.events[0].fd = fd; in socket_service_thread()
219 ctx.events[0].events = ZSOCK_POLLIN; in socket_service_thread()
229 ctx.events[get_idx(svc) + j] = svc->pev[j].event; in socket_service_thread()
236 ret = zsock_poll(ctx.events, count + 1, -1); in socket_service_thread()
248 if (ret > 0 && ctx.events[0].revents) { in socket_service_thread()
249 zvfs_eventfd_read(ctx.events[0].fd, &value); in socket_service_thread()
255 if (ctx.events[i].fd < 0) { in socket_service_thread()
259 if (ctx.events[i].revents > 0) { in socket_service_thread()
260 ret = trigger_work(&ctx.events[i]); in socket_service_thread()