Function xous::syscall::create_server_id

source ·
pub fn create_server_id() -> Result<SID, Error>
Expand description

Fetch a random server ID from the kernel. This is used exclusively by the name server and the suspend/resume server. A random server ID is generated by the kernel and returned to the caller. This address can then be registered to a nameserver by the caller in their memory space.

The implementation is just a call to the kernel-exclusive TRNG to fetch random numbers.

§Errors