kcopy(9) - NetBSD Manual Pages

Command: Section: Arch: Collection:  
KCOPY(9)               NetBSD Kernel Developer's Manual               KCOPY(9)

kcopy -- copy data with abort on page fault
#include <sys/systm.h> int kcopy(const void *src, void *dst, size_t len);
kcopy() copies len bytes from src to dst, aborting if a fatal page fault is encountered. kcopy() must save and restore the old fault handler since it is called by uiomove(9), which may be in the path of servicing a non-fatal page fault. kcopy() returns 0 on success and an error number on failure.
errno(2), memcpy(9), uiomove(9) NetBSD 5.0 April 4, 2006 NetBSD 5.0
Powered by man-cgi (2021-06-01). Maintained for NetBSD by Kimmo Suominen. Based on man-cgi by Panagiotis Christias.