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

Function copyin_nofault

freebsd/kern/subr_uio.c:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72static int uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault);
73
74int
75copyin_nofault(const void *udaddr, void *kaddr, size_t len)
76{
77 int error, save;
78
79 save = vm_fault_disable_pagefaults();
80 error = copyin(udaddr, kaddr, len);
81 vm_fault_enable_pagefaults(save);
82 return (error);
83}
84
85int
86copyout_nofault(const void *kaddr, void *udaddr, size_t len)

Callers 1

tcp_default_ctloutputFunction · 0.85

Calls 3

copyinFunction · 0.50

Tested by

no test coverage detected