blk_add_request_payload(9)

blk_add_request_payload9

Add a payload to a request

Usage

void blk_add_request_payload(struct request * rq, struct page * page, int offset, unsigned int len);

Arguments

rq

request to update

page

page backing the payload

offset

offset in page

len

length of the payload.

Overview

This allows to later add a payload to an already submitted request by a block driver. The driver needs to take care of freeing the payload itself.

Note that this is a quite horrible hack and nothing but handling of discard requests should ever use it.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.