MCPcopy Create free account
hub / github.com/F-Stack/f-stack / __umtx_op_wait

Function __umtx_op_wait

freebsd/kern/kern_umtx.c:3467–3484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3465}
3466
3467static int
3468__umtx_op_wait(struct thread *td, struct _umtx_op_args *uap,
3469 const struct umtx_copyops *ops)
3470{
3471 struct _umtx_time timeout, *tm_p;
3472 int error;
3473
3474 if (uap->uaddr2 == NULL)
3475 tm_p = NULL;
3476 else {
3477 error = ops->copyin_umtx_time(
3478 uap->uaddr2, (size_t)uap->uaddr1, &timeout);
3479 if (error != 0)
3480 return (error);
3481 tm_p = &timeout;
3482 }
3483 return (do_wait(td, uap->obj, uap->val, tm_p, ops->compat32, 0));
3484}
3485
3486static int
3487__umtx_op_wait_uint(struct thread *td, struct _umtx_op_args *uap,

Callers

nothing calls this directly

Calls 1

do_waitFunction · 0.85

Tested by

no test coverage detected