68 #define ACH_WARN_UNUSED __attribute__((warn_unused_result))
71 #define ACH_WARN_UNUSED
108 #define ACH_STATUS_MASK(r) (1<<(r))
138 ACH_MASK_ALL = 0xffffffff
161 ach_status_match(
enum ach_status status,
int mask )
232 #define ACH_CHAN_NAME_MAX 64ul
243 ach_get_fun(
void *cx,
void **obj_dst,
const void *chan_src,
size_t frame_size );
253 ach_put_fun(
void *cx,
void *chan_dst,
const void *obj_src);
an invalid header was given
Definition: generic.h:93
int options
get options used by the kernel
Definition: generic.h:258
channel file already exists
Definition: generic.h:87
channel file didn't look right
Definition: generic.h:82
enum ach_status ach_put_fun(void *cx, void *chan_dst, const void *obj_src)
Function type to transfer data into the channel.
Timeout is an absolute time.
Definition: generic.h:194
channel memory has been corrupted
Definition: generic.h:92
struct achk_opt achk_opt_t
Struct containing 'cache' of kernel module data to avoid updating when no changes exist...
internal ach error
Definition: generic.h:90
struct timespec reltime
kernel use relative time
Definition: generic.h:259
ach_get_opts_t
Option flags for ach_get().
Definition: generic.h:171
Do not block for a new messages.
Definition: generic.h:178
timeout before frame received
Definition: generic.h:86
invalid parameter
Definition: generic.h:91
ach_mask
Bit masks that correspond to members of enum ach_status.
Definition: generic.h:115
Struct containing 'cache' of kernel module data to avoid updating when no changes exist...
Definition: generic.h:257
Copy the message out of the channel, even if already seen.
Definition: generic.h:222
#define ACH_STATUS_MASK(r)
Generate a bit mask from an ach status type.
Definition: generic.h:108
permission denied
Definition: generic.h:94
no new data in the channel
Definition: generic.h:84
enum ach_mask ach_mask_t
Convenience typedef for enum ach_mask.
Definition: generic.h:142
enum ach_status ach_status_t
return status codes for ach functions.
not supported.
Definition: generic.h:100
Read the newest message out of the channel.
Definition: generic.h:216
invalid channel name
Definition: generic.h:81
unused
Definition: generic.h:89
operation canceled
Definition: generic.h:95
Retrieve the oldest unseen message.
Definition: generic.h:184
destination too small to hold frame
Definition: generic.h:80
operation interrupted.
Definition: generic.h:97
ach_status
return status codes for ach functions.
Definition: generic.h:78
enum ach_status ach_get_fun(void *cx, void **obj_dst, const void *chan_src, size_t frame_size)
Function type to transfer data out of the channel.
bad address for data copy
Definition: generic.h:96
channel file doesn't exist
Definition: generic.h:88
a system call failed
Definition: generic.h:83
Block until an unseen message arrives or timeout.
Definition: generic.h:206
we missed the next frame
Definition: generic.h:85
Timeout is a relative time.
Definition: generic.h:228
Call successful.
Definition: generic.h:79