Module syscall

Module syscall 

Source
Expand description

Sentry kernel low level syscall implementation

§Usage

This module is responsible for calling the kernel gate through the target architecture supervisor access opcode, in interaction with the corresponding arch backend.

There is no abstraction at this module’s level and should not be used directly, but instead with an upper interface such as shield

NOTE: This module may not be kept public forever

Functions§

alarm
Send a SIGALRM signal to the task after timeout_ms milliseconds.
dma_assign_stream
assign a DMA stream to its corresponding hardware channel
dma_get_stream_info
get a DMA stream static (dts-related) information from the kernel, as a structured data through SVC_Exchange
dma_get_stream_status
get the status of a given DMA stream
dma_resume_stream
resume a DMA stream
dma_start_stream
start a DMA stream
dma_suspend_stream
suspend a DMA stream
dma_unassign_stream
unassign a DMA stream from its corresponding hardware channel
exit
Exits the current job
get_cycle
Get back the elapsed time since startup, in various units
get_device_handle
Get global identifier for a given device label
get_dma_stream_handle
Get global identifier for a given DMA stream label
get_process_handle
Get global identifier for a given process label
get_random
Get random seed from the Sentry kernel RNG backend
get_shm_handle
Get global identifier for a given SHM label
gpio_configure
Configure a given GPIO for a device identified by its handle
gpio_get
Get the value of a given GPIO for a device identified by its handle
gpio_reset
Reset the value of a given GPIO for a device identified by its handle
gpio_set
Set the value of a given GPIO for a device identified by its handle
gpio_toggle
Toggle the value of a given GPIO for a device identified by its handle
irq_acknowledge
acknowledge at interrupt controller level the given interrupt
irq_disable
disable (mask) at interrupt controller level the given interrupt
irq_enable
enable (unmask) at interrupt controller level the given interrupt
log
Send a message from the current task’s ‘svc_exchange area’ through the UART.
map_dev
Map a device in the caller’s memory layout
map_shm
Map a shared memory in the caller’s memory layout
pm_manage
Configure the CPU’s sleep behaviour.
pm_set_clock
Set a given explicit clock config
sched_yield
Release the processor before the end of the current quantum
send_ipc
Send events to another job identified by its handle
send_signal
Send signal to another job identified by its handle
shm_get_infos
get the static information of a given DMA stream
shm_set_credential
Set the credentials associated to a shared memory
sleep
Sleep for a given amount of time
start
Start another task identified by its label
unmap_dev
Unùap a previously mapped device
unmap_shm
Unmap a previously mapped shared memory
wait_for_event
Wait for input event. Single active blocking syscall.