14 struct syslet_frame frame;
17 struct syslet_completion {
27 struct syslet_completion comp[0];
31 #define __NR_syslet_ring_wait 287
32 #elif defined __i386__
33 #define __NR_syslet_ring_wait 326
36 #define ESYSLETPENDING 132
38 typedef void (*syslet_return_func_t)(void);
40 void fill_syslet_args(struct syslet_args *args, struct syslet_ring *ring,
41 uint64_t caller_data, syslet_return_func_t func,
44 args->ring_ptr = (u64)(unsigned long)ring;
45 args->caller_data = caller_data;
46 args->frame.ip = (u64)(unsigned long)func;
47 args->frame.sp = (u64)(unsigned long)stack;