]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/aio.h
net: rtnetlink: validate IFLA_MTU attribute in rtnl_create_link()
[mirror_ubuntu-bionic-kernel.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
8a660890 11#define KIOCB_KEY 0
1da177e4 12
bec68faa 13typedef int (kiocb_cancel_fn)(struct kiocb *);
1da177e4 14
1da177e4 15/* prototypes */
ebf3f09c 16#ifdef CONFIG_AIO
b3c97528 17extern void exit_aio(struct mm_struct *mm);
0460fef2 18void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
ebf3f09c 19#else
ebf3f09c 20static inline void exit_aio(struct mm_struct *mm) { }
0460fef2
KO
21static inline void kiocb_set_cancel_fn(struct kiocb *req,
22 kiocb_cancel_fn *cancel) { }
ebf3f09c 23#endif /* CONFIG_AIO */
1da177e4 24
1da177e4 25/* for sysctl: */
d55b5fda
ZB
26extern unsigned long aio_nr;
27extern unsigned long aio_max_nr;
1da177e4
LT
28
29#endif /* __LINUX__AIO_H */