Skip to main content

Crate abi_definitions

Crate abi_definitions 

Source

Macros§

abi_unsafe_function

Structs§

Allocated
CompactLayout
RawMutex
RawRwLock
RuntimeContext
XilaFileSystemDirectory
Opaque shadow type generated for FFI pointer boundaries.
XilaFileSystemFile
Opaque shadow type generated for FFI pointer boundaries.
XilaFileSystemPollEvent
XilaFileSystemStatistics
XilaSemaphore
XilaTimePrecision

Enums§

XilaFileKind
XilaFileSystemWhence
XilaTimeClockIdentifier
XilaTimerFlags

Constants§

XILA_RESULT_OK

Statics§

RAW_MUTEX_SIZE
RAW_RWLOCK_SIZE
XILA_FILE_SYSTEM_ACCESS_READ_MASK
XILA_FILE_SYSTEM_ACCESS_WRITE_MASK
XILA_FILE_SYSTEM_OPEN_CREATE_MASK
XILA_FILE_SYSTEM_OPEN_CREATE_ONLY_MASK
XILA_FILE_SYSTEM_OPEN_TRUNCATE_MASK
XILA_FILE_SYSTEM_STATE_APPEND_MASK
XILA_FILE_SYSTEM_STATE_NON_BLOCKING_MASK
XILA_FILE_SYSTEM_STATE_SYNCHRONOUS_DATA_ONLY_MASK
XILA_FILE_SYSTEM_STATE_SYNCHRONOUS_MASK
XILA_MEMORY_CAPABILITIES_DIRECT_MEMORY_ACCESS
Direct Memory Access (DMA) capability - memory is accessible by DMA controllers
XILA_MEMORY_CAPABILITIES_EXECUTE
Executable capability - memory can be used for code execution
XILA_MEMORY_CAPABILITIES_NONE
No special capabilities required - standard memory allocation
XILA_MEMORY_PROTECTION_EXECUTE
Execute permission flag - allows executing code from memory
XILA_MEMORY_PROTECTION_READ
Read permission flag - allows reading from memory
XILA_MEMORY_PROTECTION_WRITE
Write permission flag - allows writing to memory

Functions§

initialize
Install the process-wide context used only by C ABI entry points.
into_pointer
Converts a function that returns an Option<NonNull<P>> into a raw C-compatible pointer.
into_position
into_result
This function is used to convert a function returning a Result into a u32.
parse_c_str⚠
Safety
xila_condition_variable_attribute_destroy⚠
This function is used to destroy a condition variable attribute.
xila_condition_variable_attribute_initialize⚠
This function is used to create a condition variable attribute.
xila_condition_variable_attribute_set_clock⚠
This function is used to set the clock of a condition variable attribute.
xila_condition_variable_broadcast⚠
This function is used to broadcast a condition variable.
xila_condition_variable_initialize⚠
This function is used to initialize a condition variable.
xila_condition_variable_new⚠
This function is used to create a condition variable.
xila_condition_variable_remove⚠
This function is used to delete a condition variable.
xila_condition_variable_signal⚠
This function is used to signal a condition variable.
xila_condition_variable_try_wait⚠
This function is used to try wait a condition variable.
xila_condition_variable_wait⚠
This function is used to wait a condition variable.
xila_destroy_mutex⚠
Destroy a mutex.
xila_destroy_rwlock⚠
Destroy a rwlock.
xila_file_system_directory_close⚠
This function is used to close a directory.
xila_file_system_directory_create⚠
This function is used to get the position in a file.
xila_file_system_directory_get_access⚠
This function is used to get the access flags of a directory.
xila_file_system_directory_get_state⚠
This function is used to get the state flags of a directory.
xila_file_system_directory_get_statistics⚠
This function is used to get the statistics of a directory.
xila_file_system_directory_open⚠
This function is used to open a directory.
xila_file_system_directory_read⚠
This function is used to read a directory.
xila_file_system_directory_rewind⚠
This function is used to rewind a directory.
xila_file_system_directory_set_position⚠
This function is used to set the position in a directory.
xila_file_system_dummy⚠
This function is used to perform a poll operation on a file.
xila_file_system_file_advise⚠
This function is used to advice the file system about the access pattern of a file.
xila_file_system_file_allocate⚠
This function is used to allocate space for a file.
xila_file_system_file_close⚠
This function is used to close a file.
xila_file_system_file_flush⚠
This function is used to flush a file.
xila_file_system_file_get_access_flags⚠
This function is used to get the access mode of a file.
xila_file_system_file_get_state⚠
This function is used to get the flags of a file.
xila_file_system_file_get_statistics⚠
This function is used to get the statistics of a file.
xila_file_system_file_is_a_terminal⚠
This function is used to check if a file is a terminal.
xila_file_system_file_open⚠
This function is used to open a file.
xila_file_system_file_read⚠
This function is used to perform a write operation on a file.
xila_file_system_file_read_at⚠
This function is used to perform a read operation on a file at a specific position.
xila_file_system_file_set_flags⚠
This function is used to set the flags of a file.
xila_file_system_file_set_position⚠
This function is used to set the position in a file.
xila_file_system_file_truncate⚠
This function is used to set the position in a file.
xila_file_system_file_write⚠
This function is used perform a vectored write operation on a file.
xila_file_system_file_write_at⚠
This function is used to perform a write operation on a file at a specific position.
xila_file_system_get_statistics_from_path⚠
This function is used to get statistics for a path.
xila_file_system_link⚠
This function is used to create a symbolic link.
xila_file_system_remove⚠
This function is used to remove a file.
xila_file_system_rename⚠
This function is used to rename (move) a file.
xila_file_system_resolve_path⚠
This function is used to convert a path to a resolved path (i.e. a path without symbolic links or relative paths).
xila_file_system_set_times⚠
This function is used to advice the file system about the access pattern of a file.
xila_file_system_set_times_from_path⚠
This function is used to set access and modification times of a file.
xila_file_system_truncate⚠
This function is used to truncate a file.
xila_initialize_mutex⚠
This function is used to initialize a mutex.
xila_initialize_recursive_mutex⚠
Initialize a recursive mutex.
xila_initialize_rwlock⚠
This function is used to initialize a rwlock.
xila_lock_mutex⚠
Lock a mutex (blocking).
xila_memory_allocate⚠
Allocates a memory block with specified properties.
xila_memory_allocate_core⚠
Allocates a memory block with default properties.
xila_memory_compare⚠
Compare memory blocks
xila_memory_copy⚠
Copy memory from source to destination
xila_memory_deallocate⚠
Deallocates a previously allocated memory block.
xila_memory_flush_data_cache
Flushes the data cache.
xila_memory_flush_instruction_cache
Flushes the instruction cache for a specific memory region.
xila_memory_get_page_size
Returns the system’s memory page size.
xila_memory_move⚠
Move memory from source to destination (handles overlapping regions)
xila_memory_reallocate⚠
Reallocates a memory block to a new size.
xila_memory_set⚠
Set memory to a specific value
xila_network_receive⚠
This function is used to receive data through a socket.
xila_network_send⚠
This function is used to send data through a socket.
xila_read_rwlock⚠
Read lock a rwlock.
xila_semaphore_close
This function is used to close a semaphore.
xila_semaphore_get_value⚠
This function is used to get the value of a semaphore.
xila_semaphore_open⚠
This function is used to create a semaphore.
xila_semaphore_post
This function is used to post a semaphore.
xila_semaphore_remove⚠
This function is used to get the value of a semaphore.
xila_semaphore_try_wait
This function is used to try wait a semaphore.
xila_semaphore_wait
This function is used to wait a semaphore.
xila_string_compare⚠
Compare two null-terminated strings
xila_string_compare_bounded⚠
Compare two strings up to n characters
xila_string_compare_case_insensitive_bounded⚠
Case-insensitive string comparison up to n characters
xila_string_concatenate⚠
Concatenate source string to destination string
xila_string_copy⚠
Copy string from source to destination
xila_string_copy_bounded⚠
Copy string from source to destination with maximum length
xila_string_duplicate⚠
Duplicate a string
xila_string_duplicate_bounded⚠
Duplicate a string up to a maximum length
xila_string_find_character⚠
Find character in string
xila_string_find_substring⚠
Find substring in a string
xila_string_get_length⚠
Get the length of a null-terminated string
xila_string_get_length_bounded⚠
Get the length of a null-terminated string with maximum length
xila_string_parse_integer⚠
Parse integer from string
xila_string_span⚠
Get length of initial segment of string that consists of accept characters
xila_string_span_complement⚠
Get length of initial segment of string that consists of reject characters
xila_string_to_double⚠
Convert string to double
xila_string_to_float⚠
Convert string to float
xila_string_to_unsigned_long⚠
Convert string to unsigned long
xila_string_to_unsigned_long_long⚠
Convert string to unsigned long long
xila_string_tokenize⚠
Tokenize a string using delimiters
xila_time_dummy
xila_time_get_cpu
xila_time_get_resolution⚠
Retrieve the current time since the system startup in milliseconds.
xila_time_get_time
Retrieve the current time since the system startup in milliseconds.
xila_time_get_time_since_startup_microseconds
Retrieve the current time since the system startup in microseconds.
xila_time_nano_sleep
xila_unlock_mutex⚠
Unlock a mutex (blocking).
xila_unlock_rwlock⚠
Unlock a rwlock.
xila_write_rwlock⚠
Write lock a rwlock.

Type Aliases§

XilaConditionVariable
XilaConditionVariableAttribute
XilaFileSystemAccess
XilaFileSystemInode
XilaFileSystemOpen
XilaFileSystemResult
XilaFileSystemSize
XilaFileSystemState
XilaGroupIdentifier
XilaMemoryCapabilities
Memory capability flags that specify special requirements for allocated memory. These flags can be combined using bitwise OR to request multiple capabilities.
XilaMemoryProtection
Memory protection flags that can be combined using bitwise OR. These flags determine what operations are allowed on memory regions.
XilaTaskIdentifier
XilaTime
XilaUserIdentifier