'\" t .\" Title: blk_rq_map_kern .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "BLK_RQ_MAP_KERN" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Block Devices" .\" ----------------------------------------------------------------- .\" * 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" blk_rq_map_kern \- map kernel data to a request, for REQ_TYPE_BLOCK_PC usage .SH "SYNOPSIS" .HP \w'int\ blk_rq_map_kern('u .BI "int blk_rq_map_kern(struct\ request_queue\ *\ " "q" ", struct\ request\ *\ " "rq" ", void\ *\ " "kbuf" ", unsigned\ int\ " "len" ", gfp_t\ " "gfp_mask" ");" .SH "ARGUMENTS" .PP \fIq\fR .RS 4 request queue where request should be inserted .RE .PP \fIrq\fR .RS 4 request to fill .RE .PP \fIkbuf\fR .RS 4 the kernel buffer .RE .PP \fIlen\fR .RS 4 length of user data .RE .PP \fIgfp_mask\fR .RS 4 memory allocation flags .RE .SH "DESCRIPTION" .PP Data will be mapped directly if possible\&. Otherwise a bounce buffer is used\&. Can be called multiple times to append multiple buffers\&. .SH "COPYRIGHT" .br