MOS Source Code
|
#include "mos/filesystem/vfs_types.h"
#include "mos/filesystem/vfs_utils.h"
#include "mos/mm/mm.h"
#include "mos/mm/physical/pmm.h"
#include "mos/mm/slab.h"
#include "mos/mm/slab_autoinit.h"
#include "mos/platform/platform.h"
#include <mos/filesystem/dentry.h>
#include <mos/filesystem/fs_types.h>
#include <mos/filesystem/vfs.h>
#include <mos/lib/structures/list.h>
#include <mos/lib/structures/tree.h>
#include <mos/misc/setup.h>
#include <mos/mos_global.h>
#include <mos/syslog/printk.h>
#include <mos_stdlib.h>
#include <mos_string.h>
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 | |
static filesystem_t | fs_cpiofs |
static const inode_ops_t | cpio_dir_inode_ops |
static const inode_ops_t | cpio_file_inode_ops |
static const file_ops_t | cpio_file_ops |
static const inode_cache_ops_t | cpio_icache_ops |
static const superblock_ops_t | cpio_sb_ops |
static const file_ops_t | cpio_noop_file_ops = { 0 } |
static slab_t * | cpio_inode_cache = NULL |
#define CPIO_MODE_FILE_TYPE 0170000 |
Definition at line 22 of file cpio.c.
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.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_SYMLINK 0120000 |
Definition at line 24 of file cpio.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_FILE 0100000 |
Definition at line 25 of file cpio.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_BLOCKDEV 0060000 |
Definition at line 26 of file cpio.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_DIR 0040000 |
Definition at line 27 of file cpio.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_CHARDEV 0020000 |
Definition at line 28 of file cpio.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_FIFO 0010000 |
Definition at line 29 of file cpio.c.
Referenced by cpio_modebits_to_filetype().
#define CPIO_MODE_SUID 0004000 |
Definition at line 30 of file cpio.c.
Referenced by cpio_inode_trycreate().
#define CPIO_MODE_SGID 0002000 |
Definition at line 31 of file cpio.c.
Referenced by cpio_inode_trycreate().
#define CPIO_MODE_STICKY 0001000 |
Definition at line 32 of file cpio.c.
Referenced by cpio_inode_trycreate().
MOS_STATIC_ASSERT | ( | sizeof(cpio_newc_header_t) | = =110, |
"cpio_newc_header has wrong size" | ) |
|
static |
MOS_INIT | ( | SLAB_AUTOINIT | , |
MOS_CONCAT(__slab_autoinit_, __COUNTER__) | ) |
Definition at line 77 of file cpio.c.
Referenced by cpio_fill_cache(), cpio_i_iterate_dir(), cpio_i_readlink(), and cpio_read_metadata().
|
static |
Definition at line 85 of file cpio.c.
Referenced by cpio_i_iterate_dir(), and cpio_inode_trycreate().
|
static |
Definition at line 103 of file cpio.c.
Referenced by cpio_inode_trycreate().
should_inline cpio_inode_t * CPIO_INODE | ( | inode_t * | inode | ) |
Definition at line 161 of file cpio.c.
Referenced by cpio_fill_cache(), cpio_i_iterate_dir(), cpio_i_readlink(), and cpio_sb_drop_inode().
|
static |
Definition at line 168 of file cpio.c.
Referenced by cpio_i_lookup(), and cpio_mount().
|
static |
|
static |
|
static |
|
static |
FILESYSTEM_AUTOREGISTER | ( | fs_cpiofs | ) |
|
static |
Definition at line 56 of file cpio.c.
Referenced by cpio_mount().
|
static |
Definition at line 67 of file cpio.c.
Referenced by cpio_inode_trycreate().
|
static |
Definition at line 68 of file cpio.c.
Referenced by cpio_inode_trycreate().
|
static |
Definition at line 69 of file cpio.c.
Referenced by cpio_inode_trycreate().
|
static |
Definition at line 70 of file cpio.c.
Referenced by cpio_inode_trycreate().
|
static |
Definition at line 71 of file cpio.c.
Referenced by cpio_mount().
|
static |
Definition at line 72 of file cpio.c.
Referenced by cpio_inode_trycreate().
Definition at line 74 of file cpio.c.
Referenced by cpio_inode_trycreate().