MOS Source Code
|
Go to the source code of this file.
Macros | |
#define | MOS_UNIMPLEMENTED(content) |
#define | MOS_UNREACHABLE() |
#define | MOS_UNREACHABLE_X(msg, ...) |
#define | MOS_ASSERT_ONCE(...) |
#define | MOS_ASSERT(cond) |
#define | MOS_ASSERT_X(cond, msg, ...) |
#define | mos_warn(fmt, ...) |
#define | mos_warn_once(...) |
#define | spinlock_assert_locked(lock) |
Functions | |
__BEGIN_DECLS (3, 4) void mos_kwarn(const char *func | |
Variables | |
u32 | line |
u32 const char * | fmt |
#define MOS_UNIMPLEMENTED | ( | content | ) |
Definition at line 10 of file assert.h.
Referenced by platform_arch_syscall().
#define MOS_UNREACHABLE | ( | ) |
Definition at line 11 of file assert.h.
Referenced by cpio_read_metadata(), dentry_resolve_to_parent(), enter_scheduler(), mos_start_kernel(), pagetable_iter_next(), pipe_close_one_end(), pipeio_io_close(), process_do_execveat(), process_exit(), riscv64_start_kernel_thread(), signal_do_coredump(), signal_do_terminate(), sysfs_register_file(), thread_exit_locked(), thread_state_str(), vsnprintf_do_pointer_kernel(), x86_handle_exception(), x86_interrupt_entry(), and x86_start_kernel_thread().
#define MOS_UNREACHABLE_X | ( | msg, | |
... ) |
Definition at line 12 of file assert.h.
Referenced by do_signal_exit_to_user_prepare(), and is_fatal_signal().
#define MOS_ASSERT_ONCE | ( | ... | ) |
Definition at line 13 of file assert.h.
Referenced by pmm_init().
#define MOS_ASSERT | ( | cond | ) |
Definition at line 14 of file assert.h.
Referenced by _pmm_unref_phyframes(), add_to_freelist(), break_the_order(), break_this_pfn(), buddy_free_n(), cow_zod_fault_handler(), cpio_fill_cache(), cpio_i_iterate_dir(), cpio_mount(), dentry_attach(), dentry_create(), dentry_from_fd(), dentry_get_mount(), dentry_lookup_child(), dentry_ref(), dentry_resolve(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), dentry_root_get_mountpoint(), dentry_try_release(), do_attach_vmap(), dump_fdt_node(), elf_map_segment(), elf_setup_main_thread(), enter_scheduler(), extract_exact_range(), futex_wait(), inode_ref(), inode_unlink(), inode_unref(), invalid_page_fault(), ipc_client_close_channel(), ipc_connect_to_server(), ipc_server_accept(), ipc_server_close(), ipc_server_close_channel(), ipc_sysfs_list_ipcs(), lapic_read32(), lapic_read64(), lapic_write32(), lapic_write64(), mm_destroy_context(), mm_flag_pages_locked(), mm_get_is_mapped_locked(), mm_handle_fault(), mm_map_kernel_pages(), mm_resolve_cow_fault(), mmstat_dec(), mmstat_inc(), pagecache_get_page_for_read(), pipe_read(), pipe_write(), pipeio_io_read(), pipeio_io_write(), platform_context_setup_child_thread(), pml1_destroy_range(), pmm_allocate_frames(), populate_freelist(), process_attach_ref_fd(), process_destroy(), process_detach_fd(), process_do_execveat(), process_do_fork(), process_exit(), process_get_fd(), process_wait_for_pid(), riscv64_trap_handler(), rtc_irq_handler(), scheduler_add_thread(), scheduler_remove_thread(), signal_exit_to_user_prepare(), signal_exit_to_user_prepare_syscall(), signal_get_next_pending(), sigset_add(), sigset_del(), sigset_test(), sysfs_fsop_mount(), sysfs_register(), sysfs_register_file(), thread_complete_init(), timer_msleep(), tmpfs_fsop_mount(), tmpfs_i_rmdir(), userfs_iop_iterate_dir(), vfs_do_open_dentry(), vfs_fault_handler(), vfs_fstatat(), vfs_generic_iterate_dir(), vfs_io_ops_mmap(), vfs_mount(), vfs_open_ipc(), vfs_register_filesystem(), vfs_unmount(), vfs_verify_permissions(), vm_protect(), vmap_destroy(), vmap_finalise_init(), vmap_obtain(), vmap_split(), vmap_split_for_range(), x86_handle_exception(), x86_keyboard_handler(), x86_pit_timer_handler(), x86_unblock_aps(), and zero_page().
#define MOS_ASSERT_X | ( | cond, | |
msg, | |||
... ) |
Definition at line 15 of file assert.h.
Referenced by _pmm_ref_phyframes(), _pmm_unref_phyframes(), add_auxv_entry(), buddy_free_n(), console_register(), dentry_attach(), dentry_mount(), dentry_resolve_follow_symlink(), dentry_resolve_to_parent(), dentry_root_get_mountpoint(), do_attach_vmap(), do_iterate_sdts(), elf_map_segment(), elf_setup_main_thread(), extract_exact_range(), inode_unlink(), ioapic_init(), kmemcache_alloc(), ksyscall_enter(), kthread_create_no_sched(), kthread_init(), mm_destroy_context(), mm_get_free_vaddr_locked(), mm_handle_fault(), mos_start_kernel(), naive_sched_select_next(), pagecache_get_page_for_read(), platform_startup_late(), pmm_init(), pmm_reserve_frames(), process_destroy(), process_exit(), process_new(), process_wait_for_pid(), reschedule(), reschedule_for_waitlist(), riscv64_trap_handler(), scheduler_add_thread(), scheduler_wake_thread(), slab_init_one(), sysfs_iops_create(), sysfs_iops_iterate_dir(), sysfs_iops_lookup(), sysfs_register_file(), thread_destroy(), thread_exit(), thread_exit_locked(), tmpfs_i_hardlink(), unblock_scheduler(), vfs_mount(), vfs_unmount(), vfs_write_pagecache(), vmap_create(), vmap_finalise_init(), vsnprintf_do_pointer_kernel(), x86_cpu_initialise_caps(), and x86_setup_thread_common().
#define mos_warn | ( | fmt, | |
... ) |
Definition at line 23 of file assert.h.
Referenced by cpio_modebits_to_filetype(), cpio_mount(), cpio_read_metadata(), dentry_check_refstat(), dentry_get_mount(), dentry_mount(), dentry_resolve_follow_symlink(), dentry_resolve_lastseg(), dentry_unref_one_norelease(), elf_create_process(), io_init(), io_mmap_perm_check(), io_munmap(), io_pread(), io_read(), io_ref(), io_seek(), io_unref(), io_write(), kwarn_handler_remove(), mm_clone_vmap_locked(), mm_map_user_pages(), mm_replace_page_locked(), MOS_SETUP(), MOS_STATIC_ASSERT(), parse_printf_flags(), printf_cs(), printf_diouxX(), process_attach_ref_fd(), sysfs_fsop_mount(), tmpfs_create_inode(), tmpfs_fsop_mount(), vfs_io_ops_seek(), vfs_list_dir(), vfs_mkdir(), vfs_mount(), vfs_rmdir(), vfs_symlink(), vfs_unmount(), vsnprintf(), and x86_handle_exception().
#define mos_warn_once | ( | ... | ) |
Definition at line 25 of file assert.h.
Referenced by pmm_init().
#define spinlock_assert_locked | ( | lock | ) |
__BEGIN_DECLS | ( | 3 | , |
4 | ) const |
u32 line |
Definition at line 36 of file assert.h.
Referenced by bitmap_clear(), bitmap_find_first_free_n(), bitmap_get(), bitmap_set(), bitmap_set_range(), do_syslog(), mos_kwarn(), and test_engine_warning_handler().
u32 const char* fmt |
Definition at line 36 of file assert.h.
Referenced by do_syslog(), lvprintk(), mos_kwarn(), sysfs_printf(), and test_engine_warning_handler().