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

Item Description
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

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