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

Function copyout_nofault

freebsd/kern/subr_uio.c:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85int
86copyout_nofault(const void *kaddr, void *udaddr, size_t len)
87{
88 int error, save;
89
90 save = vm_fault_disable_pagefaults();
91 error = copyout(kaddr, udaddr, len);
92 vm_fault_enable_pagefaults(save);
93 return (error);
94}
95
96#define PHYS_PAGE_COUNT(len) (howmany(len, PAGE_SIZE) + 1)
97

Callers 2

stats_v1_blob_cloneFunction · 0.70
sysctl_old_userFunction · 0.70

Calls 3

copyoutFunction · 0.50

Tested by

no test coverage detected