Get filesystem information
#include <sys/dcmd_blk.h> #define DCMD_FSYS_STATVFS __DIOF(_DCMD_FSYS, 13, struct statvfs)
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 |
This command gets information about the filesystem associated with the file descriptor passed to devctl().
None.
A filled-in statvfs structure; for a description of this structure, see statvfs() in the C Library Reference.
For an example of providing the information for this command, see "Filesystem statistics" in the RAM-disk Filesystem chapter of The QNX Neutrino Cookbook.
devctl(), fstatvfs() statvfs() in the QNX Neutrino C Library Reference