]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/aio.h
seccomp: Move speculation migitation control to arch code
[mirror_ubuntu-artful-kernel.git] / include / linux / aio.h
CommitLineData
1da177e4
LT
1#ifndef __LINUX__AIO_H
2#define __LINUX__AIO_H
3
1da177e4 4#include <linux/aio_abi.h>
1da177e4 5
1da177e4 6struct kioctx;
0460fef2 7struct kiocb;
e2e40f2c 8struct mm_struct;
1da177e4 9
8a660890 10#define KIOCB_KEY 0
1da177e4 11
bec68faa 12typedef int (kiocb_cancel_fn)(struct kiocb *);
1da177e4 13
1da177e4 14/* prototypes */
ebf3f09c 15#ifdef CONFIG_AIO
b3c97528 16extern void exit_aio(struct mm_struct *mm);
0460fef2 17void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
ebf3f09c 18#else
ebf3f09c 19static inline void exit_aio(struct mm_struct *mm) { }
0460fef2
KO
20static inline void kiocb_set_cancel_fn(struct kiocb *req,
21 kiocb_cancel_fn *cancel) { }
ebf3f09c 22#endif /* CONFIG_AIO */
1da177e4 23
1da177e4 24/* for sysctl: */
d55b5fda
ZB
25extern unsigned long aio_nr;
26extern unsigned long aio_max_nr;
1da177e4
LT
27
28#endif /* __LINUX__AIO_H */