Function xous::syscall::create_server_with_sid

source ·
pub fn create_server_with_sid(sid: SID) -> Result<SID, Error>
Expand description

Create a new server with the given SID. This enables other processes to connect to this server to send messages. The name is a unique 128-bit SID. That way, if a process crashes and is restarted, it can keep the same name. However, other processes cannot spoof this process.

§Errors

  • OutOfMemory: No more servers may be created because the server count limit has been reached, or the system does not have enough memory for the backing store.
  • ServerExists: A server has already registered with that name
  • InvalidString: The name was not a valid UTF-8 string