]> git.ipfire.org Git - thirdparty/kernel/stable.git/blame - include/linux/aio.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 503
[thirdparty/kernel/stable.git] / include / linux / aio.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef __LINUX__AIO_H
3#define __LINUX__AIO_H
4
1da177e4 5#include <linux/aio_abi.h>
1da177e4 6
1da177e4 7struct kioctx;
0460fef2 8struct kiocb;
e2e40f2c 9struct mm_struct;
1da177e4 10
bec68faa 11typedef int (kiocb_cancel_fn)(struct kiocb *);
1da177e4 12
1da177e4 13/* prototypes */
ebf3f09c 14#ifdef CONFIG_AIO
b3c97528 15extern void exit_aio(struct mm_struct *mm);
0460fef2 16void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
ebf3f09c 17#else
ebf3f09c 18static inline void exit_aio(struct mm_struct *mm) { }
0460fef2
KO
19static inline void kiocb_set_cancel_fn(struct kiocb *req,
20 kiocb_cancel_fn *cancel) { }
ebf3f09c 21#endif /* CONFIG_AIO */
1da177e4 22
1da177e4 23/* for sysctl: */
d55b5fda
ZB
24extern unsigned long aio_nr;
25extern unsigned long aio_max_nr;
1da177e4
LT
26
27#endif /* __LINUX__AIO_H */