blk_add_request_payload (9) - Linux Manuals
blk_add_request_payload: add a payload to a request
blk_add_request_payload - add a payload to a request
void blk_add_request_payload(struct request
* rq, struct page * page, int offset, unsigned int len);
- request to update
- page backing the payload
- offset in page
- length of the payload.
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.