#include <l4_types.h>
Public Types | |
enum | { Send_error = 0x10, Enot_existent = 0x10, Retimeout = 0x20, Setimeout = 0x30, Recanceled = 0x40, Secanceled = 0x50, Remapfailed = 0x60, Semapfailed = 0x70, Resndpfto = 0x80, Sesndpfto = 0x90, Rercvpfto = 0xA0, Sercvpfto = 0xB0, Reaborted = 0xC0, Seaborted = 0xD0, Remsgcut = 0xE0, Semsgcut = 0xF0 } |
Constants and bit masks for error codes. More... | |
Public Member Functions | |
Ipc_err (Mword raw=0) | |
Create a error code from the binary representation. | |
Mword | raw () const |
Get the binary representation. | |
Mword | deceited () const |
Message was deceited? | |
Mword | fpage_received () const |
Flexpage received? | |
void | fpage_received (Mword f) |
Set/Clear the flex page received bit. | |
Mword | redirected () const |
Message redirected? | |
Mword | src_inside () const |
Source inside? | |
Mword | snd_error () const |
Was there a send error? | |
Mword | error () const |
Get the error code. | |
void | error (Mword error) |
Set the error code. | |
Mword | has_error () const |
Was there an error? | |
const char * | str_error () const |
Return short word explaining the error. | |
Mword | rcv_map_failed () const |
Error == Receive map failed? | |
Mword | snd_map_failed () const |
Error == Send map failed? | |
void | combine (Ipc_err other) |
Combine two error codes. | |
Private Types | |
enum | { Deceite_bit = 0, Fpage_bit = 1, Redirected_bit = 2, Src_inside_bit = 3, Snd_error_bit = 4, Error_code_shift = 5, Error_code_mask = 0x7L << Error_code_shift, Error_code_size = 3, Error_shift = 4, Error_mask = 0xfL << Error_shift, Error_size = 4, Cc_mask = 0xFF } |
Private Attributes | |
Mword | _raw |
|
Constants and bit masks for error codes.
|
|
|
|
Create a error code from the binary representation.
|
|
Combine two error codes. This method is for combining two error codes, this means the binary representations of the codes are or'd together.
|
|
Message was deceited?
|
|
Set the error code.
|
|
Get the error code.
|
|
Set/Clear the flex page received bit.
|
|
Flexpage received?
|
|
Was there an error?
|
|
Get the binary representation.
|
|
Error == Receive map failed?
|
|
Message redirected?
|
|
Was there a send error?
|
|
Error == Send map failed?
|
|
Source inside?
|
|
Return short word explaining the error.
|
|
|