The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
ext2_ops.h
Go to the documentation of this file.
1#pragma once
2
3#include "common/error.h"
5
6struct fs_mount;
7typedef struct fs_mount fs_mount_t;
8
9/**
10 * initialize an ext2 filesystem on a block device and install its operations
11 * vtable on the mount. after this succeeds, all access goes through mount->ops.
12 * @param mount filesystem mount object to initialize.
13 * @param device initialized block device backend.
14 * @return KERR_OK on success, or an error code on failure.
15 */
struct block_device block_device_t
Definition block_device.h:5
kerr_t
unified kernel error codes.
Definition error.h:14
kerr_t ext2_ops_mount(fs_mount_t *mount, block_device_t *device)
initialize an ext2 filesystem on a block device and install its operations vtable on the mount.
Definition ext2_ops.c:448
struct fs_mount fs_mount_t
filesystem operations vtable.
Definition ext2_ops.h:7
a registered device.
Definition device.h:114
filesystem mount structure representing a mounted filesystem.
Definition fs.h:139