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

Function subyte

freebsd/i386/i386/copyout.c:367–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367int
368subyte(volatile void *base, int byte)
369{
370
371 if ((uintptr_t)base + sizeof(uint8_t) < (uintptr_t)base ||
372 (uintptr_t)base + sizeof(uint8_t) > VM_MAXUSER_ADDRESS)
373 return (-1);
374 if (fast_copyout && subyte_fast_tramp(base, byte, pmap_get_kcr3()) == 0)
375 return (0);
376 return (cp_slow0((vm_offset_t)base, sizeof(u_char), true, subyte_slow0,
377 &byte) != 0 ? -1 : 0);
378}
379
380static void
381suword16_slow0(vm_offset_t kva, void *arg)

Callers 5

linux_modify_ldtFunction · 0.50
vn_io_fault_touchFunction · 0.50
freebsd4_unameFunction · 0.50
ureadcFunction · 0.50
kern_mincoreFunction · 0.50

Calls 2

pmap_get_kcr3Function · 0.85
cp_slow0Function · 0.85

Tested by

no test coverage detected