The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
ext2_ops.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
common/error.h
"
4
#include "
drivers/disk/block_device.h
"
5
6
struct
fs_mount
;
7
typedef
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
*/
16
kerr_t
ext2_ops_mount
(
fs_mount_t
*mount,
block_device_t
*
device
);
block_device.h
block_device_t
struct block_device block_device_t
Definition
block_device.h:5
error.h
kerr_t
kerr_t
unified kernel error codes.
Definition
error.h:14
ext2_ops_mount
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
fs_mount_t
struct fs_mount fs_mount_t
filesystem operations vtable.
Definition
ext2_ops.h:7
device
a registered device.
Definition
device.h:114
fs_mount
filesystem mount structure representing a mounted filesystem.
Definition
fs.h:139
src
kernel
fs
ext2_ops.h
Generated by
1.18.0