cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

aio.h (570B)


      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#endif /* __LINUX__AIO_H */