---
name: "end_that_request_first"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/end_that_request_first"
---

# end\_that\_request\_first(9)

end I/O on a request

## NAME

end\_that\_request\_first - end I/O on a request

## SYNOPSIS

**int end\_that\_request\_first(struct request \*** *req***, int** *uptodate***, int** *nr\_sectors***);**

## ARGUMENTS

*req*

the request being processed

*uptodate*

1 for success, 0 for I/O error, \< 0 for specific error

*nr\_sectors*

number of sectors to end I/O on

## DESCRIPTION

Ends I/O on a number of sectors attached to *req*, and sets it up for the next range of segments (if any) in the cluster.

## RETURN

0 - we are done with this request, call **end\_that\_request\_last** 1 - still buffers pending for this request

## COPYRIGHT
