Lines Matching defs:ctx
16 static zx_status_t common_callback(zx_obj_type_t type, get_task_ctx_t* ctx,
18 if (koid == ctx->desired_koid) {
24 ctx->found_handle = dup;
25 ctx->found_type = type;
31 static zx_status_t job_callback(void* ctx, int depth, zx_handle_t handle,
33 return common_callback(ZX_OBJ_TYPE_JOB, ctx, handle, koid);
36 static zx_status_t process_callback(void* ctx, int depth, zx_handle_t handle,
38 return common_callback(ZX_OBJ_TYPE_PROCESS, ctx, handle, koid);
41 static zx_status_t thread_callback(void* ctx, int depth, zx_handle_t handle,
43 return common_callback(ZX_OBJ_TYPE_THREAD, ctx, handle, koid);
51 get_task_ctx_t ctx = {
57 job_callback, process_callback, thread_callback, &ctx);
59 *type = ctx.found_type;
60 *out = ctx.found_handle;