static clock_source_t source
Structure to describe the HPET to the sys time subsystem.
#define DENTRY_IS_POSITIVE(dentry)
Check if a dentry is positive.
mount_t * mount_new(superblock_t *superblock, dentry_t *source, dentry_t *target, mount_t *parent, mode_t mode)
Create a new mount.
mode_t
Path flags and permissions.
void superblock_inc_mount_count(superblock_t *superblock)
Increment the mount count of a superblock.
void superblock_dec_mount_count(superblock_t *superblock)
Decrement the mount count of a superblock.
void rcu_call_free(void *arg)
Helper callback to free a pointer.
void rcu_call(rcu_entry_t *entry, rcu_callback_t func, void *arg)
Add a callback to be executed after a grace period.
#define REF(ptr)
Increment reference count.
static void ref_init(ref_t *ref, void *callback)
Initialize a reference counter.
#define UNREF(ptr)
Decrement reference count.
uint64_t vfs_id_get(void)
Generates a new unique ID, to be used for any VFS object.
#define ENOENT
No such file or directory.
#define EINVAL
Invalid argument.
#define ENOMEM
Out of memory.
#define errno
Error number variable.
uint64_t mount(const char *mountpoint, const char *fs, const char *options)
System call for mounting a filesystem.
#define NULL
Pointer error value.
static void mount_free(mount_t *mount)
#define atomic_fetch_add_explicit(object, operand, order)
#define atomic_fetch_sub_explicit(object, operand, order)
_PUBLIC void * malloc(size_t size)
Directory entry structure.