---
name: "gfs_pio_flush"
section: "3"
platform: "linux"
package: "libgfarm-dev"
version: "2.7.20+dfsg-1.2+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs_pio_flush"
---

# gfs\_pio\_flush(3)

flush a stream

## NAME

gfs\_pio\_flush - flush a stream

## SYNOPSIS

```
#include <gfarm/gfarm.h>
```

**gfarm\_error\_t gfs\_pio\_flush(GFS\_File** *gf***);**

## DESCRIPTION

The function **gfs\_pio\_flush()** forces a write of all user-space buffered data for the given output *gf*.

## RETURN VALUES

**GFARM\_ERR\_NO\_ERROR**

The function terminated successfully.

**GFARM\_ERR\_NO\_MEMORY**

Insufficient memory was available.

Others

An error except the above occurred. The reason is shown by **gfarm\_error\_string**(3).

## SEE ALSO

[**gfs\_pio\_create**(3)](/gfs_pio_create/3.md), [**gfs\_pio\_open**(3)](/gfs_pio_open/3.md), [**gfs\_pio\_write**(3)](/gfs_pio_write/3.md)
