![]() |
MOS Source Code
|
#include "mos/mm/mm.hpp"
#include "mos/platform/platform.hpp"
#include <mos/io/io.hpp>
#include <mos/io/io_types.h>
#include <mos/mm/mm_types.h>
#include <mos/mos_global.h>
#include <mos/syslog/printk.hpp>
#include <mos_stdio.hpp>
Go to the source code of this file.
Functions | |
static size_t | _null_read (io_t *io, void *buffer, size_t size) |
static size_t | _null_write (io_t *io, const void *buffer, size_t size) |
void | io_init (io_t *io, io_type_t type, io_flags_t flags, const io_op_t *ops) |
io_t * | io_ref (io_t *io) |
io_t * | io_unref (io_t *io) |
bool | io_valid (const io_t *io) |
size_t | io_read (io_t *io, void *buf, size_t count) |
size_t | io_pread (io_t *io, void *buf, size_t count, off_t offset) |
size_t | io_write (io_t *io, const void *buf, size_t count) |
off_t | io_seek (io_t *io, off_t offset, io_seek_whence_t whence) |
off_t | io_tell (io_t *io) |
bool | io_mmap_perm_check (io_t *io, vm_flags flags, bool is_private) |
bool | io_mmap (io_t *io, vmap_t *vmap, off_t offset) |
bool | io_munmap (io_t *io, vmap_t *vmap, bool *unmapped) |
void | io_get_name (const io_t *io, char *buf, size_t size) |
Variables | |
static const io_op_t | ops |
static io_t | io_null_impl |
io_t *const | io_null = &io_null_impl |
void io_init | ( | io_t * | io, |
io_type_t | type, | ||
io_flags_t | flags, | ||
const io_op_t * | ops ) |
Definition at line 45 of file io.cpp.
Referenced by console_register(), ipc_conn_io_create(), ipc_create(), pipeio_create(), and vfs_do_open_dentry().
Definition at line 74 of file io.cpp.
Referenced by elf_create_process(), elf_fill_process(), elf_map_interpreter(), io_dup(), io_dup2(), io_mmap(), mm_clone_vmap_locked(), process_attach_ref_fd(), process_do_execveat(), process_do_fork(), and vmap_split().
Definition at line 93 of file io.cpp.
Referenced by elf_create_process(), elf_fill_process(), elf_map_interpreter(), io_munmap(), process_detach_fd(), process_do_execveat(), and process_exit().
Definition at line 128 of file io.cpp.
Referenced by process_detach_fd(), process_do_execveat(), process_do_fork(), process_exit(), and vfs_fstatat().
Definition at line 133 of file io.cpp.
Referenced by io_pread(), and io_read().
Definition at line 152 of file io.cpp.
Referenced by elf_read_file(), and io_pread().
Definition at line 181 of file io.cpp.
Referenced by io_write().
off_t io_seek | ( | io_t * | io, |
off_t | offset, | ||
io_seek_whence_t | whence ) |
Definition at line 200 of file io.cpp.
Referenced by io_pread(), io_seek(), and io_tell().
Definition at line 219 of file io.cpp.
Referenced by io_pread(), and io_tell().
Definition at line 225 of file io.cpp.
Referenced by io_mmap(), and vm_protect().
Definition at line 255 of file io.cpp.
Referenced by mmap_file().
Definition at line 274 of file io.cpp.
Referenced by vmap_destroy().
Definition at line 308 of file io.cpp.
Referenced by process_sysfs_vmap_stat(), vsnprintf_do_pointer_kernel(), and x86_dump_stack_at().
|
static |
Definition at line 29 of file io.cpp.
Referenced by do_sync_inode(), io_init(), vfs_do_open_dentry(), vfs_io_ops_seek(), and vfs_write_pagecache().
|
static |
io_t* const io_null = &io_null_impl |
Definition at line 43 of file io.cpp.
Referenced by process_new().