MOS Source Code
Loading...
Searching...
No Matches
pb_syshdr.h File Reference

Go to the source code of this file.

Macros

#define offsetof(st, m)
 
#define NULL   0
 
#define false   0
 
#define true   1
 
#define CHAR_BIT   8
 

Typedefs

typedef signed char int8_t
 
typedef unsigned char uint8_t
 
typedef signed short int16_t
 
typedef unsigned short uint16_t
 
typedef signed int int32_t
 
typedef unsigned int uint32_t
 
typedef signed long long int64_t
 
typedef unsigned long long uint64_t
 
typedef int8_t int_least8_t
 
typedef uint8_t uint_least8_t
 
typedef uint8_t uint_fast8_t
 
typedef int16_t int_least16_t
 
typedef uint16_t uint_least16_t
 
typedef uint32_t size_t
 
typedef int bool
 

Functions

static size_t strlen (const char *s)
 
static voidmemcpy (void *s1, const void *s2, size_t n)
 
static voidmemset (void *s, int c, size_t n)
 

Macro Definition Documentation

◆ offsetof

#define offsetof ( st,
m )
Value:
((size_t)(&((st *)0)->m))
uint32_t size_t
Definition pb_syshdr.h:42

Definition at line 43 of file pb_syshdr.h.

Referenced by pb_enc_bytes().

◆ NULL

#define NULL   0

Definition at line 46 of file pb_syshdr.h.

Referenced by __mos_test_wrapped_test_hashmap_foreach_function(), __mos_test_wrapped_test_hashmap_init_simple_macro(), __mos_test_wrapped_test_hashmap_put_multiple(), __mos_test_wrapped_test_hashmap_put_overflow(), __mos_test_wrapped_test_hashmap_put_single(), __mos_test_wrapped_test_hashmap_remove_function(), __mos_test_wrapped_test_kmalloc_a_lot(), __mos_test_wrapped_test_kmalloc_large(), __mos_test_wrapped_test_kmalloc_single(), __mos_test_wrapped_test_kmalloc_stress(), __mos_test_wrapped_test_multi_args_with_multiple_options(), __mos_test_wrapped_test_one_arg_with_an_option(), __mos_test_wrapped_test_one_arg_with_multiple_options(), __mos_test_wrapped_test_quotation_with_escaped_quotation_marks(), __mos_test_wrapped_test_quoted_args(), __mos_test_wrapped_test_quoted_args_with_spaces(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals(), __mos_test_wrapped_test_simple_cmdline(), __mos_test_wrapped_test_stack_init_deinit(), acpi_find_rsdp(), buddy_alloc_n_exact(), buf_read(), check_alltypes(), cmdline_get_option(), cmdline_parse(), cmdline_static_array_insert(), console_get(), console_get_by_prefix(), console_register(), cpio_fill_cache(), cpio_i_iterate_dir(), cpio_inode_trycreate(), cpio_mount(), cpio_read_metadata(), create_idle_task(), create_thread(), decode_callback_field(), decode_extension(), decode_pointer_field(), decode_static_field(), decode_unionmessage_type(), dentry_attach(), dentry_check_refstat(), dentry_detach(), dentry_dump_refstat(), dentry_from_fd(), dentry_get_from_parent(), dentry_get_mount(), dentry_lookup_child(), dentry_mount(), dentry_path(), dentry_ref_up_to(), dentry_resolve(), dentry_resolve_follow_symlink(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), dentry_root_get_mountpoint(), dentry_try_release(), dentry_unmount(), dentry_unref_one_norelease(), dmabuf_free(), do_attach_vmap(), do_decode(), do_roundtrip(), elf_create_process(), elf_fill_process(), elf_setup_main_thread(), encode_array(), encode_callback_field(), enter_scheduler(), fd_manipulate(), fdt_find_max_phandle(), fdt_find_string_(), fdt_get_alias_namelen(), fdt_get_name(), fdt_get_property_by_offset(), fdt_get_property_by_offset_(), fdt_get_property_namelen(), fdt_get_property_namelen_(), fdt_get_string(), fdt_getprop_by_offset(), fdt_getprop_namelen(), fdt_grab_space_(), fdt_mem_rsv(), fdt_node_offset_by_compatible(), fdt_node_offset_by_phandle(), fdt_node_offset_by_prop_value(), fdt_num_mem_rsv(), fdt_offset_ptr(), fdt_overlay_target_offset(), fdt_parent_offset(), fdt_string(), fdt_stringlist_get(), field_callback(), file_get_ops(), fill_TestMessage(), find_entry(), find_panic_point(), fork(), futex_wait(), futex_wake(), generate_base_message(), generate_message(), handle_connection(), hashmap_deinit(), hashmap_foreach(), hashmap_get(), hashmap_put(), hashmap_remove(), init_uart(), inode_init(), invalid_page_fault(), io_dup(), io_dup2(), io_get_name(), io_pread(), io_read(), io_readv(), io_ref(), io_seek(), io_tell(), io_unref(), io_write(), ipc_accept(), ipc_connect_to_server(), ipc_get_server(), ipc_read_msg(), ipc_sysfs_lookup_ipc(), kallsyms_get_symbol(), kthread_create_no_sched(), kthread_init(), kwarn_handler_remove(), limine_entry(), listdir(), ListFilesResponse_callback(), load_descriptor_values(), main(), main(), main(), malloc_with_check(), memchr(), memfd_init(), mm_clone_vmap_locked(), mm_dump_current_pagetable(), mm_get_free_page(), mm_get_free_page_raw(), mm_get_free_pages(), mm_handle_fault(), mm_lock_ctx_pair(), mm_map_user_pages(), mm_unlock_ctx_pair(), mmap_file(), mmap_file(), mmap_verify_arguments(), mmstat_sysfs_phyframe_stat_store(), mmstat_sysfs_store_pid(), MOS_INIT(), MOS_SETUP(), mos_start_kernel(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_TEST_CASE(), MOS_TEST_DECL_PTEST(), mos_test_engine_setup_skip_prefix_list(), munmap(), naive_sched_select_next(), overlay_apply_node(), overlay_merge(), overlay_update_local_node_references(), pagecache_get_page_for_read(), pagetable_iter_next(), pb_check_proto3_default_value(), pb_close_string_substream(), pb_dec_submessage(), pb_decode_inner(), pb_decode_varint32(), pb_default_field_callback(), pb_enc_bytes(), pb_enc_string(), pb_enc_submessage(), pb_encode_submessage(), pb_field_set_to_default(), pb_istream_from_buffer(), pb_ostream_from_buffer(), pb_read(), pb_skip_field(), pb_skip_string(), pb_write(), platform_context_cleanup(), platform_startup_late(), pmm_allocate_frames(), pmm_find_reserved_region(), pmm_init(), printf_cs(), printf_diouxX(), process_allocate(), process_destroy(), process_do_execveat(), process_do_fork(), process_exit(), process_get(), process_get_fd(), process_is_valid(), process_new(), process_wait_for_pid(), realloc_with_check(), recursive_spinlock_release(), ring_buffer_create(), ring_buffer_create_at(), rpc_arg_next(), rpc_arg_next_string(), rpc_arg_sized_next(), rpc_arg_string(), rpc_call_exec(), rpc_client_create(), rpc_context_set_data(), rpc_do_pb_call(), rpc_handle_client(), rpc_server_create(), rpc_server_get_function(), rpc_server_register_functions(), rpc_write_result(), signal_send_to_process(), simple_page_write_begin(), slab_alloc(), slab_allocate_mem(), slab_calloc(), slab_for(), slab_realloc(), stack_pop(), start_thread(), stdin_can_read(), strchr(), stream_callback(), string_trim(), strpbrk(), strrchr(), strtok(), strtok_r(), sysfs_fops_release(), sysfs_fsop_mount(), sysfs_register_root_file(), test_Garbage(), test_OneofMessage(), test_TestMessage(), TestMessage_values_callback(), thread_complete_init(), thread_destroy(), thread_get(), thread_new(), thread_wait_for_tid(), timer_do_wakeup(), timer_msleep(), tmpfs_fsop_mount(), tmpfs_sb_drop_inode(), tree_add_child(), userfs_fsop_mount(), userfs_manager_rpc_init(), userfs_manager_server_exec(), vfs_do_open(), vfs_find_filesystem(), vfs_generic_iterate_dir(), vfs_io_ops_close_dir(), vfs_list_dir(), vfs_mkdir(), vfs_mount(), vfs_open_ipc(), vfs_rmdir(), vfs_unlinkat(), vfs_unmount(), vm_protect(), vmap_obtain(), vsnprintf_do_pointer_kernel(), x86_dump_stack_at(), and x86_setup_thread_common().

◆ false

#define false   0

Definition at line 58 of file pb_syshdr.h.

◆ true

#define true   1

Definition at line 59 of file pb_syshdr.h.

◆ CHAR_BIT

#define CHAR_BIT   8

Definition at line 117 of file pb_syshdr.h.

Referenced by sigset_add(), sigset_del(), and sigset_test().

Typedef Documentation

◆ int8_t

typedef signed char int8_t

Definition at line 19 of file pb_syshdr.h.

◆ uint8_t

typedef unsigned char uint8_t

Definition at line 20 of file pb_syshdr.h.

◆ int16_t

typedef signed short int16_t

Definition at line 21 of file pb_syshdr.h.

◆ uint16_t

typedef unsigned short uint16_t

Definition at line 22 of file pb_syshdr.h.

◆ int32_t

typedef signed int int32_t

Definition at line 23 of file pb_syshdr.h.

◆ uint32_t

typedef unsigned int uint32_t

Definition at line 24 of file pb_syshdr.h.

◆ int64_t

typedef signed long long int64_t

Definition at line 25 of file pb_syshdr.h.

◆ uint64_t

typedef unsigned long long uint64_t

Definition at line 26 of file pb_syshdr.h.

◆ int_least8_t

Definition at line 30 of file pb_syshdr.h.

◆ uint_least8_t

Definition at line 31 of file pb_syshdr.h.

◆ uint_fast8_t

Definition at line 32 of file pb_syshdr.h.

◆ int_least16_t

Definition at line 33 of file pb_syshdr.h.

◆ uint_least16_t

Definition at line 34 of file pb_syshdr.h.

◆ size_t

typedef uint32_t size_t

Definition at line 42 of file pb_syshdr.h.

◆ bool

typedef int bool

Definition at line 57 of file pb_syshdr.h.

Function Documentation

◆ strlen()

static size_t strlen ( const char * s)
static

Definition at line 80 of file pb_syshdr.h.

Referenced by __mos_test_wrapped_test_multi_args_with_multiple_options(), __mos_test_wrapped_test_one_arg_with_an_option(), __mos_test_wrapped_test_one_arg_with_multiple_options(), __mos_test_wrapped_test_quotation_with_escaped_quotation_marks(), __mos_test_wrapped_test_quoted_args(), __mos_test_wrapped_test_quoted_args_with_spaces(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas(), __mos_test_wrapped_test_quoted_args_with_spaces_and_commas_and_equals(), __mos_test_wrapped_test_simple_cmdline(), cmdline_parse_generic(), console_get_by_prefix(), cpio_i_iterate_dir(), cpio_mount(), dentry_path(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), dump_fdt_node(), elf_setup_main_thread(), encode_repeatedstring(), encode_string(), fdt_add_string_(), fdt_add_subnode(), fdt_begin_node(), fdt_del_last_string_(), fdt_del_last_string_(), fdt_find_add_string_(), fdt_find_string_(), fdt_get_alias(), fdt_get_name(), fdt_get_property(), fdt_get_string(), fdt_getprop(), fdt_path_offset(), fdt_set_name(), fdt_setprop_inplace(), fdt_stringlist_contains(), fdt_stringlist_search(), fdt_subnode_offset(), hashmap_hash_string(), ipc_sysfs_list_ipcs(), listdir(), mos_cmdline_init(), MOS_SETUP(), MOS_SETUP(), mos_test_engine_should_skip(), overlay_symbol_update(), overlay_update_local_node_references(), print_string(), printf_cs(), printf_diouxX(), rpc_call_arg_string(), rpc_simple_callv(), sbi_putstring(), serial_console_set_color(), string_trim(), string_unquote(), strtoll(), SubMsg3_callback(), sysfs_fsop_mount(), sysfs_iops_iterate_dir(), sysfs_register_file(), tmpfs_fsop_mount(), tmpfs_i_readlink(), userfs_iop_iterate_dir(), userfs_iop_readlink(), userfs_manager_register_filesystem(), validate_pointer(), validate_static(), vfs_generic_iterate_dir(), write_repeated_string(), and write_string().

◆ memcpy()

◆ memset()