Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX__AIO_H
0003 #define __LINUX__AIO_H
0004 
0005 #include <linux/aio_abi.h>
0006 
0007 struct kioctx;
0008 struct kiocb;
0009 struct mm_struct;
0010 
0011 typedef int (kiocb_cancel_fn)(struct kiocb *);
0012 
0013 /* prototypes */
0014 #ifdef CONFIG_AIO
0015 extern void exit_aio(struct mm_struct *mm);
0016 void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
0017 #else
0018 static inline void exit_aio(struct mm_struct *mm) { }
0019 static inline void kiocb_set_cancel_fn(struct kiocb *req,
0020                        kiocb_cancel_fn *cancel) { }
0021 #endif /* CONFIG_AIO */
0022 
0023 #endif /* __LINUX__AIO_H */