---
name: "blk_end_request"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/blk_end_request"
---

# blk\_end\_request(9)

Helper function for drivers to complete the request.

## NAME

blk\_end\_request - Helper function for drivers to complete the request.

## SYNOPSIS

**bool blk\_end\_request(struct request \*** *rq***, int** *error***, unsigned int** *nr\_bytes***);**

## ARGUMENTS

*rq*

the request being processed

*error*

**0** for success, \< **0** for error

*nr\_bytes*

number of bytes to complete

## DESCRIPTION

Ends I/O on a number of bytes attached to *rq*. If *rq* has leftover, sets it up for the next range of segments.

## RETURN

**false** - we are done with this request **true** - still buffers pending for this request

## COPYRIGHT
