#include <mos/mos_global.h>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
◆ PTR_FMT
#define PTR_FMT "0x%16.16lx" |
Definition at line 33 of file types.h.
Referenced by __destroy_page_table(), dispatch_syscall(), dmabuf_allocate(), dmabuf_free(), elf_map_segment(), futex_wait(), futex_wake(), hexdump(), invalid_page_fault(), lapic_memory_setup(), lapic_read32(), lapic_read64(), lapic_write32(), lapic_write64(), limine_entry(), mm_clone_vmap_locked(), mm_do_unmap(), mm_flag_pages_locked(), mm_map_kernel_pages(), mm_map_user_pages(), mm_replace_page_locked(), mmap_anonymous(), pagetable_do_dump(), platform_dump_regs(), platform_dump_regs(), platform_startup_late(), pmm_find_reserved_region(), riscv64_trap_handler(), slab_sysfs_slabinfo(), try_handle_kernel_panics(), try_handle_kernel_panics_at(), x86_handle_exception(), and x86_setup_direct_map().
◆ PTR_VLFMT
#define PTR_VLFMT "0x%lx" |
◆ PTR_RANGE
◆ PTR_VLRANGE
◆ PTR_RANGE64
#define PTR_RANGE64 "[0x%.16llx - 0x%.16llx]" |
◆ PFN_FMT
Definition at line 42 of file types.h.
Referenced by dmabuf_allocate(), dmabuf_share(), dmabuf_unshare(), dump_list(), extract_exact_range(), limine_entry(), mm_handle_fault(), mm_map_kernel_pages(), mm_map_user_pages(), mm_replace_page_locked(), pmm_init(), and try_merge().
◆ PFN_RANGE
Definition at line 43 of file types.h.
Referenced by _pmm_ref_phyframes(), _pmm_unref_phyframes(), break_the_order(), break_this_pfn(), buddy_free_n(), buddy_reserve_n(), dump_list(), mmstat_sysfs_pagetable_show(), pagetable_do_dump(), pmm_allocate_frames(), pmm_find_reserved_region(), pmm_free_frames(), pmm_reserve_frames(), populate_freelist(), and try_merge().
◆ PFNADDR_RANGE
◆ PFNADDR
#define PFNADDR |
( |
| pfn, |
|
|
| end ) |
◆ new_named_opaque_type
#define new_named_opaque_type |
( |
| base, |
|
|
| name, |
|
|
| type ) |
Value: typedef struct \
{ \
} type
Definition at line 88 of file types.h.
◆ new_opaque_type
#define new_opaque_type |
( |
| type, |
|
|
| name ) |
Value:
#define new_named_opaque_type(base, name, type)
Definition at line 94 of file types.h.
◆ new_opaque_ptr_type
#define new_opaque_ptr_type |
( |
| name | ) |
|
Value:
Definition at line 95 of file types.h.
◆ __atomic
Value:
typedef _Atomic(size_t) atomic_t
Definition at line 102 of file types.h.
◆ s8
◆ s16
◆ s32
◆ slong
typedef signed long slong |
◆ s64
typedef signed long long int s64 |
◆ u8
◆ u16
typedef unsigned short u16 |
◆ u32
◆ ulong
typedef unsigned long ulong |
◆ u64
typedef unsigned long long u64 |
◆ ptr_t
typedef unsigned long ptr_t |
◆ ptr32_t
◆ ptr64_t
◆ intn
◆ uintn
typedef unsigned long uintn |
◆ pfn_t
typedef unsigned long long pfn_t |
◆ reg_t
◆ reg16_t
◆ reg32_t
◆ reg64_t
◆ id_t
◆ uid_t
◆ gid_t
◆ pid_t
◆ tid_t
◆ fd_t
◆ ssize_t
◆ off_t
◆ pte_content_t
◆ futex_word_t
◆ thread_entry_t
typedef void(* thread_entry_t) (void *arg) |
◆ MOS_STATIC_ASSERT() [1/3]
MOS_STATIC_ASSERT |
( |
sizeof(void *) | = =8, |
|
|
"pointer size check failed" | ) |
◆ MOS_STATIC_ASSERT() [2/3]
MOS_STATIC_ASSERT |
( |
sizeof(ptr_t) | = =sizeof(void *), |
|
|
"ptr_t is not the same size as void *" | ) |
◆ MOS_STATIC_ASSERT() [3/3]
MOS_STATIC_ASSERT |
( |
sizeof(byte_t) | = =1, |
|
|
"byte_t is not 1 byte" | ) |
◆ _Atomic()