| 3465 | } |
| 3466 | |
| 3467 | static 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 | |
| 3486 | static int |
| 3487 | __umtx_op_wait_uint(struct thread *td, struct _umtx_op_args *uap, |