return information from the file system manager for a file
#include <sys/fsysinfo.h> int fsysinfo( const char *path, struct _fsysinfo *buf, int reset );
The fsysinfo() function returns information from the file system manager responsible for the file named by path. This information is the same as that reported by the fsysinfo utility.
If reset is nonzero and the calling process has an effective userid of root, the statistics maintained by the file system are reset.
If the call is successful, the structure pointed to by buf contains information such as the number of cache hits and the number of locks used. See <sys/fsysinfo.h> for more information.
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
fsysinfo utility