DCMD_FSYS_STATVFS

Get filesystem information

Synopsis:

#include <sys/dcmd_blk.h>

#define DCMD_FSYS_STATVFS   __DIOF(_DCMD_FSYS,  13, struct statvfs)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device.
dcmd DCMD_FSYS_STATVFS
dev_data_ptr A pointer to a struct statvfs
n_bytes sizeof(struct statvfs)
dev_info_ptr NULL

Description:

This command gets information about the filesystem associated with the file descriptor passed to devctl().

Input:

None.

Output:

A filled-in statvfs structure; for a description of this structure, see statvfs() in the C Library Reference.

Example:

For an example of providing the information for this command, see Filesystem statistics in the RAM-disk Filesystem chapter of The QNX Neutrino Cookbook.

See also:

devctl(), statvfs() in the QNX Neutrino C Library Reference