Ashet OS

namespace: ashet.shm

System Calls

syscall create(in size: usize, out handle: SharedMemory)

Constructs a new shared memory object with size bytes of memory. Shared memory can be written by all processes without any memory protection.

syscall get_length(in handle: SharedMemory, out length: usize)

Returns the number of bytes inside the given shared memory object.

syscall get_pointer(in handle: SharedMemory, out pointer: [*]align(16) u8)

Returns a pointer to the shared memory.