signal: Fix sending signals with siginfo
[cris-mirror.git] / include / linux / aio.h
blobfdd0a343f45527ee2b5d4a787ad5388a6ce4e47a
1 #ifndef __LINUX__AIO_H
2 #define __LINUX__AIO_H
4 #include <linux/aio_abi.h>
6 struct kioctx;
7 struct kiocb;
8 struct mm_struct;
10 #define KIOCB_KEY 0
12 typedef int (kiocb_cancel_fn)(struct kiocb *);
14 /* prototypes */
15 #ifdef CONFIG_AIO
16 extern void exit_aio(struct mm_struct *mm);
17 void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
18 #else
19 static inline void exit_aio(struct mm_struct *mm) { }
20 static inline void kiocb_set_cancel_fn(struct kiocb *req,
21 kiocb_cancel_fn *cancel) { }
22 #endif /* CONFIG_AIO */
24 /* for sysctl: */
25 extern unsigned long aio_nr;
26 extern unsigned long aio_max_nr;
28 #endif /* __LINUX__AIO_H */