Implement an ATA driver, Add vfsmount/vfsunmount syscalls

This commit is contained in:
2025-10-14 00:39:59 +02:00
parent cb9e15330e
commit 25cb309105
19 changed files with 455 additions and 58 deletions

View File

@ -1,6 +1,9 @@
#ifndef UTIL_UTIL_H_
#define UTIL_UTIL_H_
#include <stdint.h>
#include <stddef.h>
#define _DIV_ROUNDUP(num, div) ((num + div - 1) / div)
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
@ -74,5 +77,6 @@
var = tmp, tmp = (var ? var->next : NULL), (idx)++)
char *util_get_filename(char *path);
const char *human_size(uint64_t bytes, char *buf, size_t bufsize);
#endif // UTIL_UTIL_H_