'\" t .\" Title: bio_split .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "BIO_SPLIT" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_split \- split a bio .SH "SYNOPSIS" .HP \w'struct\ bio\ *\ bio_split('u .BI "struct bio * bio_split(struct\ bio\ *\ " "bio" ", int\ " "sectors" ", gfp_t\ " "gfp" ", struct\ bio_set\ *\ " "bs" ");" .SH "ARGUMENTS" .PP \fIbio\fR .RS 4 bio to split .RE .PP \fIsectors\fR .RS 4 number of sectors to split from the front of \fIbio\fR .RE .PP \fIgfp\fR .RS 4 gfp mask .RE .PP \fIbs\fR .RS 4 bio set to allocate from .RE .SH "DESCRIPTION" .PP Allocates and returns a new bio which represents \fIsectors\fR from the start of \fIbio\fR, and updates \fIbio\fR to represent the remaining sectors\&. .PP Unless this is a discard request the newly allocated bio will point to \fIbio\fR\*(Aqs bi_io_vec; it is the caller\*(Aqs responsibility to ensure that \fIbio\fR is not freed before the split\&. .SH "COPYRIGHT" .br