'\" t .\" Title: bio_copy_kern .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "BIO_COPY_KERN" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" bio_copy_kern \- copy kernel address into bio .SH "SYNOPSIS" .HP \w'struct\ bio\ *\ bio_copy_kern('u .BI "struct bio * bio_copy_kern(struct\ request_queue\ *\ " "q" ", void\ *\ " "data" ", unsigned\ int\ " "len" ", gfp_t\ " "gfp_mask" ", int\ " "reading" ");" .SH "ARGUMENTS" .PP \fIq\fR .RS 4 the struct request_queue for the bio .RE .PP \fIdata\fR .RS 4 pointer to buffer to copy .RE .PP \fIlen\fR .RS 4 length in bytes .RE .PP \fIgfp_mask\fR .RS 4 allocation flags for bio and page allocation .RE .PP \fIreading\fR .RS 4 data direction is READ .RE .SH "DESCRIPTION" .PP copy the kernel address into a bio suitable for io to a block device\&. Returns an error pointer in case of error\&. .SH "COPYRIGHT" .br