mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
xous: additional documentation on server errors
There are multiple reasons why a process might fail to create a new server. Add notes on why this might be. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
6f4b58c47d
commit
e13bb426e3
1 changed files with 9 additions and 2 deletions
|
|
@ -1281,7 +1281,9 @@ pub fn claim_interrupt(
|
|||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// * **OutOfMemory**: No more servers may be created
|
||||
/// * **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
|
||||
pub fn create_server_with_address(name_bytes: &[u8; 16]) -> core::result::Result<SID, Error> {
|
||||
|
|
@ -1304,7 +1306,9 @@ pub fn create_server_with_address(name_bytes: &[u8; 16]) -> core::result::Result
|
|||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// * **OutOfMemory**: No more servers may be created
|
||||
/// * **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
|
||||
pub fn create_server_with_sid(sid: SID) -> core::result::Result<SID, Error> {
|
||||
|
|
@ -1326,6 +1330,9 @@ pub fn create_server_with_sid(sid: SID) -> core::result::Result<SID, Error> {
|
|||
/// # Errors
|
||||
///
|
||||
/// * **ServerNotFound**: No more servers may be created
|
||||
/// * **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.
|
||||
pub fn create_server() -> core::result::Result<SID, Error> {
|
||||
let result = rsyscall(SysCall::CreateServer)?;
|
||||
if let Result::NewServerID(sid, _cid) = result {
|
||||
|
|
|
|||
Loading…
Reference in a new issue