Files
kernel/include/linux/aio.h
T

24 lines
570 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
2005-04-16 15:20:36 -07:00
#ifndef __LINUX__AIO_H
#define __LINUX__AIO_H
#include <linux/aio_abi.h>
struct kioctx;
2013-05-07 16:18:49 -07:00
struct kiocb;
2015-02-22 08:58:50 -08:00
struct mm_struct;
2005-04-16 15:20:36 -07:00
typedef int (kiocb_cancel_fn)(struct kiocb *);
2005-04-16 15:20:36 -07:00
/* prototypes */
2008-10-15 22:05:12 -07:00
#ifdef CONFIG_AIO
extern void exit_aio(struct mm_struct *mm);
2013-05-07 16:18:49 -07:00
void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
2008-10-15 22:05:12 -07:00
#else
static inline void exit_aio(struct mm_struct *mm) { }
2013-05-07 16:18:49 -07:00
static inline void kiocb_set_cancel_fn(struct kiocb *req,
kiocb_cancel_fn *cancel) { }
2008-10-15 22:05:12 -07:00
#endif /* CONFIG_AIO */
2005-04-16 15:20:36 -07:00
#endif /* __LINUX__AIO_H */