[Previous]
[Contents]
[Next]

fsysinfo()

return information from the file system manager for a file

Synopsis:

#include <sys/fsysinfo.h>
int fsysinfo( const char *path, 
              struct _fsysinfo *buf, 
              int reset );

Description:

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.

Returns:

0
Success
-1
An error occurred. The global variable errno is set to indicate the error, and the information structure isn't filled.

Errors:

ENOSYS
The fsysinfo() function isn't supported for this path.

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes, but modifies errno
Thread Yes

See also:

fsysinfo utility


[Previous]
[Contents]
[Next]