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

Function fuword16

freebsd/i386/i386/copyout.c:304–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304int
305fuword16(volatile const void *base)
306{
307 int res;
308
309 if ((uintptr_t)base + sizeof(uint16_t) < (uintptr_t)base ||
310 (uintptr_t)base + sizeof(uint16_t) > VM_MAXUSER_ADDRESS)
311 return (-1);
312 if (fast_copyout) {
313 res = fuword16_fast_tramp(base, pmap_get_kcr3());
314 if (res != -1)
315 return (res);
316 }
317 if (cp_slow0((vm_offset_t)base, sizeof(uint16_t), false,
318 fuword16_slow0, &res) != 0)
319 return (-1);
320 return (res);
321}
322
323static void
324fueword_slow0(vm_offset_t kva, void *arg)

Callers 3

cpu_fetch_syscall_argsFunction · 0.85
vm86_fuword16Function · 0.85
ia32_fetch_syscall_argsFunction · 0.85

Calls 2

pmap_get_kcr3Function · 0.85
cp_slow0Function · 0.85

Tested by

no test coverage detected