Writes changes for a specified range of a file to permanent storage.
#include <sys/fp_io.h>
int fp_fsync (fp, how, off, len)
struct file *fp;
int how;
offset_t off;
offset_t len;
The fp_fsync kernel service is an internal interface to the function provided by the fsync_range subroutine.
Item | Description |
---|---|
fp | Points to a file structure returned by the fp_open kernel service. |
how | How to flush, FDATASYNC, or FFILESYNC:
|
off | Starting file offset. |
len | Length, or zero for everything |
The fp_fsync kernel service can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates a successful operation. |
ERRNO | Returns an error number from the /usr/include/sys/errno.h file on failure. |