.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "COPY_OLDMEM_PAGE" "9" "09 October 2005" "" "" .SH NAME copy_oldmem_page \- copy one page from ``oldmem'' .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp ssize_t copy_oldmem_page (unsigned long \fIpfn\fB, char * \fIbuf\fB, size_t \fIcsize\fB, unsigned long \fIoffset\fB, int \fIuserbuf\fB); \fR .SH "ARGUMENTS" .TP \fB\fIpfn\fB\fR page frame number to be copied .TP \fB\fIbuf\fB\fR target memory address for the copy; this can be in kernel address space or user address space (see \fIuserbuf\fR) .TP \fB\fIcsize\fB\fR number of bytes to copy .TP \fB\fIoffset\fB\fR offset in bytes into the page (based on pfn) to begin the copy .TP \fB\fIuserbuf\fB\fR if set, \fIbuf\fR is in user address space, use \fBcopy_to_user\fR, otherwise \fIbuf\fR is in kernel address space, use \fBmemcpy\fR\&. .SH "DESCRIPTION" .PP Copy a page from ``oldmem''\&. For this page, there is no pte mapped in the current kernel. We stitch up a pte, similar to kmap_atomic.