---
name: "blk_end_bidi_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_bidi_request"
---

# blk\_end\_bidi\_request(9)

Complete a bidi request

## NAME

blk\_end\_bidi\_request - Complete a bidi request

## SYNOPSIS

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

## ARGUMENTS

*rq*

the request to complete

*error*

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

*nr\_bytes*

number of bytes to complete *rq*

*bidi\_bytes*

number of bytes to complete *rq*-\>next\_rq

## DESCRIPTION

Ends I/O on a number of bytes attached to *rq* and *rq*-\>next\_rq. Drivers that supports bidi can safely call this member for any type of request, bidi or uni. In the later case *bidi\_bytes* is just ignored.

## RETURN

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

## COPYRIGHT
