Lines Matching refs:poll_ctx
37 struct poll_ctx { struct
47 struct poll_ctx* previous; /* context from previous start()..stop() period */ argument
61 handle->poll_ctx = NULL; in uv_fs_poll_init() argument
70 struct poll_ctx* ctx; in uv_fs_poll_start()
103 if (handle->poll_ctx != NULL) in uv_fs_poll_start()
104 ctx->previous = handle->poll_ctx; in uv_fs_poll_start()
105 handle->poll_ctx = ctx; in uv_fs_poll_start()
117 struct poll_ctx* ctx; in uv_fs_poll_stop()
122 ctx = handle->poll_ctx; in uv_fs_poll_stop()
139 struct poll_ctx* ctx; in uv_fs_poll_getpath()
147 ctx = handle->poll_ctx; in uv_fs_poll_getpath()
167 if (handle->poll_ctx == NULL) in uv__fs_poll_close()
173 struct poll_ctx* ctx; in timer_cb()
175 ctx = container_of(timer, struct poll_ctx, timer_handle); in timer_cb()
177 assert(ctx->parent_handle->poll_ctx == ctx); in timer_cb()
187 struct poll_ctx* ctx; in poll_cb()
191 ctx = container_of(req, struct poll_ctx, fs_req); in poll_cb()
235 struct poll_ctx* ctx; in timer_close_cb()
236 struct poll_ctx* it; in timer_close_cb()
237 struct poll_ctx* last; in timer_close_cb()
240 ctx = container_of(timer, struct poll_ctx, timer_handle); in timer_close_cb()
242 if (ctx == handle->poll_ctx) { in timer_close_cb()
243 handle->poll_ctx = ctx->previous; in timer_close_cb()
244 if (handle->poll_ctx == NULL && uv__is_closing(handle)) in timer_close_cb()
247 for (last = handle->poll_ctx, it = last->previous; in timer_close_cb()