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

Function umtx_read_uptr

freebsd/kern/kern_umtx.c:4563–4582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4561}
4562
4563static int
4564umtx_read_uptr(struct thread *td, uintptr_t ptr, uintptr_t *res, bool compat32)
4565{
4566 u_long res1;
4567 uint32_t res32;
4568 int error;
4569
4570 if (compat32) {
4571 error = fueword32((void *)ptr, &res32);
4572 if (error == 0)
4573 res1 = res32;
4574 } else {
4575 error = fueword((void *)ptr, &res1);
4576 }
4577 if (error == 0)
4578 *res = res1;
4579 else
4580 error = EFAULT;
4581 return (error);
4582}
4583
4584static void
4585umtx_read_rb_list(struct thread *td, struct umutex *m, uintptr_t *rb_list,

Callers 2

umtx_cleanup_rb_listFunction · 0.85
umtx_thread_cleanupFunction · 0.85

Calls 2

fueword32Function · 0.85
fuewordFunction · 0.50

Tested by

no test coverage detected