[][src]Crate hermit

Modules

fs
irq
kernel
mm
percore
processor
scheduler

Architecture dependent interface to initialize a task

x86_64

Structs

SpinlockContainer
SpinlockIrqSaveContainer
itimerval
timespec
timeval

Constants

CLOCK_MONOTONIC
CLOCK_PROCESS_CPUTIME_ID
CLOCK_REALTIME
CLOCK_THREAD_CPUTIME_ID
DEFAULT_STACK_SIZE
KERNEL_STACK_SIZE
TIMER_ABSTIME
USER_STACK_SIZE
VIRTIO_MAX_QUEUE_SIZE

Functions

__sys_free

Interface to deallocate a memory region from the system heap

__sys_malloc

Interface to allocate memory from system heap

__sys_netwait
__sys_realloc

Shrink or grow a block of memory to the given new_size. The block is described by the given ptr pointer and layout. If this returns a non-null pointer, then ownership of the memory block referenced by ptr has been transferred to this allocator. The memory may or may not have been deallocated, and should be considered unusable (unless of course it was transferred back to the caller again via the return value of this method). The new memory block is allocated with layout, but with the size updated to new_size. If this method returns null, then ownership of the memory block has not been transferred to this allocator, and the contents of the memory block are unaltered.

__sys_shutdown
__sys_usleep
application_processor_init

Application Processor initialization

boot_application_processors

Boots all available Application Processors on bare-metal or QEMU. Called after the Boot Processor has been fully initialized along with its scheduler.

boot_processor_init

Real Boot Processor initialization as soon as we have put the first Welcome message on the screen.

get_application_parameters
get_boot_time
get_processor_count
message_output_init

Earliest initialization function called by the Boot Processor.

output_message_buf
output_message_byte
random_init
set_current_kernel_stack
set_oneshot_timer
switch
sys_abort
sys_add_queue
sys_clock_getres
sys_clock_gettime
sys_clock_nanosleep
sys_clock_settime
sys_close
sys_destroy_queue
sys_exit
sys_free
sys_get_mac_address
sys_get_mtu
sys_get_processor_count

Returns the number of processors currently online.

sys_get_processor_frequency

Returns the processor frequency in MHz.

sys_get_tx_buffer
sys_getpagesize
sys_getpid
sys_getprio
sys_gettimeofday
sys_init_queue
sys_join
sys_lseek
sys_malloc
sys_msleep
sys_nanosleep
sys_netwait
sys_netwakeup
sys_notify
sys_open
sys_rand
sys_read
sys_realloc
sys_receive_rx_buffer
sys_recmutex_destroy
sys_recmutex_init
sys_recmutex_lock
sys_recmutex_unlock
sys_rx_buffer_consumed
sys_sem_cancelablewait
sys_sem_destroy
sys_sem_init
sys_sem_post
sys_sem_timedwait
sys_sem_trywait
sys_send_tx_buffer
sys_setitimer
sys_setprio
sys_shutdown
sys_spawn
sys_spawn2
sys_spinlock_destroy
sys_spinlock_init
sys_spinlock_irqsave_destroy
sys_spinlock_irqsave_init
sys_spinlock_irqsave_lock
sys_spinlock_irqsave_unlock
sys_spinlock_lock
sys_spinlock_unlock
sys_stat
sys_thread_exit
sys_unlink
sys_usleep
sys_wait
sys_write
sys_yield
wakeup_core

Send an inter-processor interrupt to wake up a CPU Core that is in a HALT state.

Type Definitions

Tid