summaryrefslogtreecommitdiff
path: root/os/syslet.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-01-10 11:23:19 +0100
committerJens Axboe <axboe@kernel.dk>2013-01-10 11:23:19 +0100
commit67bf982340d95ca98098ea050b54b4c7adb116c0 (patch)
tree00b8947272d1301426b199e8f98c6a5933969909 /os/syslet.h
parent78c1111eacdb594e0488d5adc508091fc2a3af88 (diff)
downloadfio-67bf982340d95ca98098ea050b54b4c7adb116c0.tar.gz
fio-67bf982340d95ca98098ea050b54b4c7adb116c0.tar.bz2
Add configure script
Get rid of all the fragile guessing and checking of features, and roll a configure script instead. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os/syslet.h')
-rw-r--r--os/syslet.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/os/syslet.h b/os/syslet.h
deleted file mode 100644
index 095cc134..00000000
--- a/os/syslet.h
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef _SYSLET_H_
-#define _SYSLET_H_
-
-#include "kcompat.h"
-
-struct syslet_frame {
- u64 ip;
- u64 sp;
-};
-
-struct syslet_args {
- u64 ring_ptr;
- u64 caller_data;
- struct syslet_frame frame;
-};
-
-struct syslet_completion {
- u64 status;
- u64 caller_data;
-};
-
-struct syslet_ring {
- u32 kernel_head;
- u32 user_tail;
- u32 elements;
- u32 wait_group;
- struct syslet_completion comp[0];
-};
-
-#ifdef __x86_64__
-#define __NR_syslet_ring_wait 287
-#elif defined __i386__
-#define __NR_syslet_ring_wait 326
-#endif
-
-#define ESYSLETPENDING 132
-
-typedef void (*syslet_return_func_t)(void);
-
-static inline void fill_syslet_args(struct syslet_args *args,
- struct syslet_ring *ring, uint64_t caller_data,
- syslet_return_func_t func, void *stack)
-{
- args->ring_ptr = (u64)(unsigned long)ring;
- args->caller_data = caller_data;
- args->frame.ip = (u64)(unsigned long)func;
- args->frame.sp = (u64)(unsigned long)stack;
-}
-
-#endif