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

Function suword16

freebsd/i386/i386/copyout.c:387–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387int
388suword16(volatile void *base, int word)
389{
390
391 if ((uintptr_t)base + sizeof(uint16_t) < (uintptr_t)base ||
392 (uintptr_t)base + sizeof(uint16_t) > VM_MAXUSER_ADDRESS)
393 return (-1);
394 if (fast_copyout && suword16_fast_tramp(base, word, pmap_get_kcr3())
395 == 0)
396 return (0);
397 return (cp_slow0((vm_offset_t)base, sizeof(int16_t), true,
398 suword16_slow0, &word) != 0 ? -1 : 0);
399}
400
401static void
402suword_slow0(vm_offset_t kva, void *arg)

Callers 1

vm86_suword16Function · 0.85

Calls 2

pmap_get_kcr3Function · 0.85
cp_slow0Function · 0.85

Tested by

no test coverage detected