miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Toggle main menu visibility
Loading...
Searching...
No Matches
tmpfs.h
Go to the documentation of this file.
1
// MIT License
2
//
3
// Copyright (c) 2026 Christian Spoo
4
//
5
// Permission is hereby granted, free of charge, to any person obtaining a copy
6
// of this software and associated documentation files (the "Software"), to deal
7
// in the Software without restriction, including without limitation the rights
8
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
// copies of the Software, and to permit persons to whom the Software is
10
// furnished to do so, subject to the following conditions:
11
//
12
// The above copyright notice and this permission notice shall be included in all
13
// copies or substantial portions of the Software.
14
//
15
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
// SOFTWARE.
22
23
#ifndef _MINIOS_FS_TMPFS_H_
24
#define _MINIOS_FS_TMPFS_H_
25
26
#include <
miniOS/fs/vfs.h
>
27
36
void
tmpfs_init
(
void
);
37
44
vfs_ops_t
*
tmpfs_get_ops
(
void
);
45
54
uint32_t
tmpfs_alloc_root
(
void
);
55
67
int
tmpfs_create
(
uint32_t
parent_ino,
const
char
*name,
uint16_t
mode,
uint32_t
*new_ino_out);
68
69
int
tmpfs_create_device
(
uint32_t
parent_ino,
const
char
*name,
uint8_t
device_type,
70
uint32_t
*new_ino_out);
71
84
int
tmpfs_mknod
(
uint32_t
parent_ino,
const
char
*name,
uint16_t
mode,
85
uint32_t
dev,
uint32_t
*new_ino_out);
86
97
int
tmpfs_mkdir
(
uint32_t
parent_ino,
const
char
*name,
uint32_t
*new_ino_out);
98
108
int
tmpfs_unlink
(
uint32_t
parent_ino,
const
char
*name);
109
118
int
tmpfs_rmdir
(
uint32_t
parent_ino,
const
char
*name);
119
120
#endif
/* _MINIOS_FS_TMPFS_H_ */
tmpfs_alloc_root
uint32_t tmpfs_alloc_root(void)
Definition
tmpfs.c:580
tmpfs_rmdir
int tmpfs_rmdir(uint32_t parent_ino, const char *name)
Definition
tmpfs.c:696
tmpfs_unlink
int tmpfs_unlink(uint32_t parent_ino, const char *name)
Definition
tmpfs.c:681
tmpfs_init
void tmpfs_init(void)
Definition
tmpfs.c:551
tmpfs_mkdir
int tmpfs_mkdir(uint32_t parent_ino, const char *name, uint32_t *new_ino_out)
Definition
tmpfs.c:659
tmpfs_mknod
int tmpfs_mknod(uint32_t parent_ino, const char *name, uint16_t mode, uint32_t dev, uint32_t *new_ino_out)
Definition
tmpfs.c:625
tmpfs_create_device
int tmpfs_create_device(uint32_t parent_ino, const char *name, uint8_t device_type, uint32_t *new_ino_out)
Definition
tmpfs.c:606
tmpfs_get_ops
vfs_ops_t * tmpfs_get_ops(void)
Definition
tmpfs.c:576
tmpfs_create
int tmpfs_create(uint32_t parent_ino, const char *name, uint16_t mode, uint32_t *new_ino_out)
Definition
tmpfs.c:589
uint16_t
unsigned short uint16_t
Definition
types.h:31
uint32_t
unsigned int uint32_t
Definition
types.h:34
uint8_t
unsigned char uint8_t
Definition
types.h:28
vfs.h
vfs_ops_t
struct vfs_ops vfs_ops_t
include
miniOS
fs
tmpfs.h
Generated by
1.18.0