Scroll to navigation

BIO_ADD_PC_PAGE(9) The Linux VFS BIO_ADD_PC_PAGE(9)

NAME

bio_add_pc_page - attempt to add page to bio

SYNOPSIS

int bio_add_pc_page(struct request_queue * q, struct bio * bio, struct page * page, unsigned int len, unsigned int offset);

ARGUMENTS

struct request_queue * q

the target queue

struct bio * bio

destination bio

struct page * page

page to add

unsigned int len

vec entry length

unsigned int offset

vec entry offset

DESCRIPTION

Attempt to add a page to the bio_vec maplist. This can fail for a number of reasons, such as the bio being full or target block device limitations. The target block device must allow bio's up to PAGE_SIZE, so it is always possible to add a single page to an empty bio.

This should only be used by REQ_PC bios.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.12