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