Top/ps process monitor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
509 B

#ifndef __FILESYSTEMS_H__
#define __FILESYSTEMS_H__
typedef struct {
unsigned long long total;
unsigned long long used;
} _Usage;
typedef struct _Filesystem_Info {
char *path;
char *mount;
unsigned int type;
_Usage usage;
} Filesystem_Info;
const char *
filesystem_name_by_id(unsigned int id);
unsigned int
filesystem_id_by_name(const char *name);
Filesystem_Info *
filesystem_info_get(const char *path);
void
filesystem_info_free(Filesystem_Info *fs);
#endif