70 #define ACH_WARN_UNUSED __attribute__((warn_unused_result))
73 #define ACH_WARN_UNUSED
77 #include <linux/compat.h>
109 #define ACH_STALE_FRAMES ACH_EAGAIN
110 #define ACH_LOCKED ACH_EAGAIN
116 #define ACH_STATUS_MASK(r) (1<<(r))
147 ACH_MASK_ALL = 0xffffffff
150 #define ACH_MASK_STALE_FRAMES ACH_MASK_EAGAIN
151 #define ACH_MASK_LOCKED ACH_MASK_EAGAIN
173 ach_status_match(
enum ach_status status,
int mask )
244 #define ACH_CHAN_NAME_MAX 64ul
255 ach_get_fun(
void *cx,
void **obj_dst,
const void *chan_src,
size_t frame_size );
265 ach_put_fun(
void *cx,
void *chan_dst,
const void *obj_src);
277 typedef struct achk_opt_32 {
279 struct compat_timespec reltime;
an invalid header was given
Definition: generic.h:99
int options
get options used by the kernel
Definition: generic.h:270
channel file already exists
Definition: generic.h:93
channel file didn't look right
Definition: generic.h:88
no new data in the channel
Definition: generic.h:90
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:206
channel memory has been corrupted
Definition: generic.h:98
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:96
struct timespec reltime
kernel use relative time
Definition: generic.h:271
ach_get_opts_t
Option flags for ach_get().
Definition: generic.h:183
Do not block for a new messages.
Definition: generic.h:190
timeout before frame received
Definition: generic.h:92
invalid parameter
Definition: generic.h:97
ach_mask
Bit masks that correspond to members of enum ach_status.
Definition: generic.h:123
Struct containing 'cache' of kernel module data to avoid updating when no changes exist...
Definition: generic.h:269
Copy the message out of the channel, even if already seen.
Definition: generic.h:234
#define ACH_STATUS_MASK(r)
Generate a bit mask from an ach status type.
Definition: generic.h:116
permission denied
Definition: generic.h:100
enum ach_mask ach_mask_t
Convenience typedef for enum ach_mask.
Definition: generic.h:154
enum ach_status ach_status_t
return status codes for ach functions.
not supported.
Definition: generic.h:106
Read the newest message out of the channel.
Definition: generic.h:228
invalid channel name
Definition: generic.h:87
unused
Definition: generic.h:95
operation canceled
Definition: generic.h:101
Retrieve the oldest unseen message.
Definition: generic.h:196
destination too small to hold frame
Definition: generic.h:86
operation interrupted.
Definition: generic.h:103
ach_status
return status codes for ach functions.
Definition: generic.h:84
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:102
channel file doesn't exist
Definition: generic.h:94
a system call failed
Definition: generic.h:89
Block until an unseen message arrives or timeout.
Definition: generic.h:218
we missed the next frame
Definition: generic.h:91
Timeout is a relative time.
Definition: generic.h:240
Call successful.
Definition: generic.h:85