[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

fp_fsync Kernel Service

Purpose

Writes changes for a specified range of a file to permanent storage.

Syntax

#include <sys/fp_io.h>

int fp_fsync (fp, how, off, len)
struct file *fp;
int how;
offset_t off;
offset_t len;

Description

The fp_fsync kernel service is an internal interface to the function provided by the fsync_range subroutine.

Parameters

fp Points to a file structure returned by the fp_open kernel service.
how How to flush, FDATASYNC, or FFILESYNC:
FDATASYNC
Write file data and enough of the meta-data to retrieve the data for the specified range.
FFILESYNC
All modified file data and meta-data for the specified range.
off Starting file offset.
len Length, or zero for everything

Execution Environment

The fp_fsync kernel service can be called from the process environment only.

Return Values

0 Indicates a successful operation.
ERRNO Returns an error number from the /usr/include/sys/errno.h file on failure.

Related Information

The fsync or fsync_range Subroutine in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1.

Logical File System Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]