![]() |
MOS Source Code
|
#include "mos/filesystem/vfs_types.hpp"
#include "mos/filesystem/vfs_utils.hpp"
#include "mos/mm/mm.hpp"
#include "mos/mm/physical/pmm.hpp"
#include "mos/platform/platform.hpp"
#include <algorithm>
#include <mos/allocator.hpp>
#include <mos/filesystem/dentry.hpp>
#include <mos/filesystem/fs_types.h>
#include <mos/filesystem/vfs.hpp>
#include <mos/lib/structures/list.hpp>
#include <mos/lib/structures/tree.hpp>
#include <mos/misc/setup.hpp>
#include <mos/mos_global.h>
#include <mos/syslog/printk.hpp>
#include <mos_stdlib.hpp>
#include <mos_string.hpp>
Go to the source code of this file.
Classes | |
struct | cpio_newc_header_t |
struct | cpio_inode_t |
Macros | |
#define | CPIO_MODE_FILE_TYPE 0170000 |
#define | CPIO_MODE_SOCKET 0140000 |
#define | CPIO_MODE_SYMLINK 0120000 |
#define | CPIO_MODE_FILE 0100000 |
#define | CPIO_MODE_BLOCKDEV 0060000 |
#define | CPIO_MODE_DIR 0040000 |
#define | CPIO_MODE_CHARDEV 0020000 |
#define | CPIO_MODE_FIFO 0010000 |
#define | CPIO_MODE_SUID 0004000 |
#define | CPIO_MODE_SGID 0002000 |
#define | CPIO_MODE_STICKY 0001000 |
Variables | |
const inode_ops_t | cpio_dir_inode_ops |
const inode_ops_t | cpio_file_inode_ops |
const file_ops_t | cpio_file_ops |
const inode_cache_ops_t | cpio_icache_ops |
const superblock_ops_t | cpio_sb_ops |
const file_ops_t | cpio_noop_file_ops = { 0 } |
#define CPIO_MODE_FILE_TYPE 0170000 |
Definition at line 22 of file cpio.cpp.
Referenced by cpio_i_iterate_dir(), cpio_inode_trycreate(), and cpio_modebits_to_filetype().
#define CPIO_MODE_SOCKET 0140000 |
Definition at line 23 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_SYMLINK 0120000 |
Definition at line 24 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_FILE 0100000 |
Definition at line 25 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_BLOCKDEV 0060000 |
Definition at line 26 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_DIR 0040000 |
Definition at line 27 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_CHARDEV 0020000 |
Definition at line 28 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_FIFO 0010000 |
Definition at line 29 of file cpio.cpp.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_SUID 0004000 |
Definition at line 30 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
#define CPIO_MODE_SGID 0002000 |
Definition at line 31 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
#define CPIO_MODE_STICKY 0001000 |
Definition at line 32 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
MOS_STATIC_ASSERT | ( | sizeof(cpio_newc_header_t) | = =110, |
"cpio_newc_header has wrong size" | ) |
Definition at line 72 of file cpio.cpp.
Referenced by cpio_fill_cache(), cpio_i_iterate_dir(), cpio_i_readlink(), and cpio_read_metadata().
|
static |
Definition at line 80 of file cpio.cpp.
Referenced by cpio_i_iterate_dir(), and cpio_inode_trycreate().
|
static |
Definition at line 98 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
should_inline cpio_inode_t * CPIO_INODE | ( | inode_t * | inode | ) |
Definition at line 156 of file cpio.cpp.
Referenced by cpio_fill_cache(), cpio_i_iterate_dir(), cpio_i_readlink(), and cpio_sb_drop_inode().
|
static |
Definition at line 163 of file cpio.cpp.
Referenced by cpio_i_lookup(), and cpio_mount().
|
static |
Definition at line 205 of file cpio.cpp.
Referenced by FILESYSTEM_DEFINE().
|
static |
PtrResult< phyframe_t > cpio_fill_cache | ( | inode_cache_t * | cache, |
uint64_t | pgoff ) |
|
static |
FILESYSTEM_AUTOREGISTER | ( | fs_cpiofs | ) |
const inode_ops_t cpio_dir_inode_ops |
Definition at line 335 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
const inode_ops_t cpio_file_inode_ops |
Definition at line 340 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
const file_ops_t cpio_file_ops |
Definition at line 344 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
const inode_cache_ops_t cpio_icache_ops |
Definition at line 368 of file cpio.cpp.
Referenced by cpio_inode_trycreate().
const superblock_ops_t cpio_sb_ops |
Definition at line 331 of file cpio.cpp.
Referenced by cpio_mount().
|
extern |
Referenced by cpio_inode_trycreate().