1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Kernel: Add statvfs & fstatvfs Syscalls

These syscalls fill a statvfs struct with various data
about the mount on the VFS.
This commit is contained in:
Justin 2021-05-19 11:31:43 +02:00 committed by Andreas Kling
parent 721a867c65
commit 1c3badede3
5 changed files with 133 additions and 1 deletions

View file

@ -22,6 +22,7 @@ struct timespec;
struct sockaddr;
struct siginfo;
struct stat;
struct statvfs;
typedef u32 socklen_t;
}
@ -177,7 +178,9 @@ namespace Kernel {
S(anon_create) \
S(msyscall) \
S(readv) \
S(emuctl)
S(emuctl) \
S(statvfs) \
S(fstatvfs)
namespace Syscall {
@ -458,6 +461,11 @@ struct SC_inode_watcher_add_watch_params {
u32 event_mask;
};
struct SC_statvfs_params {
StringArgument path;
struct statvfs* buf;
};
void initialize();
int sync();