mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 10:26:42 +07:00
e2e40f2c1e
struct kiocb now is a generic I/O container, so move it to fs.h. Also do a #include diet for aio.h while we're at it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
34 lines
879 B
C
34 lines
879 B
C
#ifndef __LINUX__AIO_H
|
|
#define __LINUX__AIO_H
|
|
|
|
#include <linux/aio_abi.h>
|
|
|
|
struct kioctx;
|
|
struct kiocb;
|
|
struct mm_struct;
|
|
|
|
#define KIOCB_KEY 0
|
|
|
|
typedef int (kiocb_cancel_fn)(struct kiocb *);
|
|
|
|
/* prototypes */
|
|
#ifdef CONFIG_AIO
|
|
extern void exit_aio(struct mm_struct *mm);
|
|
extern long do_io_submit(aio_context_t ctx_id, long nr,
|
|
struct iocb __user *__user *iocbpp, bool compat);
|
|
void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
|
|
#else
|
|
static inline void exit_aio(struct mm_struct *mm) { }
|
|
static inline long do_io_submit(aio_context_t ctx_id, long nr,
|
|
struct iocb __user * __user *iocbpp,
|
|
bool compat) { return 0; }
|
|
static inline void kiocb_set_cancel_fn(struct kiocb *req,
|
|
kiocb_cancel_fn *cancel) { }
|
|
#endif /* CONFIG_AIO */
|
|
|
|
/* for sysctl: */
|
|
extern unsigned long aio_nr;
|
|
extern unsigned long aio_max_nr;
|
|
|
|
#endif /* __LINUX__AIO_H */
|