mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
![Christoph Hellwig](/assets/img/avatar_default.png)
No need to pass the key field to lookup_iocb to compare it with KIOCB_KEY, as we can do that right after retrieving it from userspace. Also move the KIOCB_KEY definition to aio.c as it is an internal value not used by any other place in the kernel. Signed-off-by: Christoph Hellwig <hch@lst.de>
27 lines
651 B
C
27 lines
651 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX__AIO_H
|
|
#define __LINUX__AIO_H
|
|
|
|
#include <linux/aio_abi.h>
|
|
|
|
struct kioctx;
|
|
struct kiocb;
|
|
struct mm_struct;
|
|
|
|
typedef int (kiocb_cancel_fn)(struct kiocb *);
|
|
|
|
/* prototypes */
|
|
#ifdef CONFIG_AIO
|
|
extern void exit_aio(struct mm_struct *mm);
|
|
void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
|
|
#else
|
|
static inline void exit_aio(struct mm_struct *mm) { }
|
|
static inline void kiocb_set_cancel_fn(struct kiocb *req,
|
|
kiocb_cancel_fn *cancel) { }
|
|
#endif /* CONFIG_AIO */
|
|
|
|
/* for sysctl: */
|
|
extern unsigned long aio_nr;
|
|
extern unsigned long aio_max_nr;
|
|
|
|
#endif /* __LINUX__AIO_H */
|