linux/include/linux/aio.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#ifndef __LINUX__AIO_H
   3#define __LINUX__AIO_H
   4
   5#include <linux/aio_abi.h>
   6
   7struct kioctx;
   8struct kiocb;
   9struct mm_struct;
  10
  11typedef int (kiocb_cancel_fn)(struct kiocb *);
  12
  13/* prototypes */
  14#ifdef CONFIG_AIO
  15extern void exit_aio(struct mm_struct *mm);
  16void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
  17#else
  18static inline void exit_aio(struct mm_struct *mm) { }
  19static inline void kiocb_set_cancel_fn(struct kiocb *req,
  20                                       kiocb_cancel_fn *cancel) { }
  21#endif /* CONFIG_AIO */
  22
  23/* for sysctl: */
  24extern unsigned long aio_nr;
  25extern unsigned long aio_max_nr;
  26
  27#endif /* __LINUX__AIO_H */
  28