Christoph Hellwigfs: move struct kiocb to fs.he2e40f211 years agoHistory
33 lines · 879 B · C
RawDownload
#ifndef __LINUX__AIO_H#define __LINUX__AIO_H #include <linux/aio_abi.h> struct kioctx;struct kiocb;struct mm_struct; #define KIOCB_KEY		0 typedef int (kiocb_cancel_fn)(struct kiocb *); /* prototypes */#ifdef CONFIG_AIOextern void exit_aio(struct mm_struct *mm);extern long do_io_submit(aio_context_t ctx_id, long nr,			 struct iocb __user *__user *iocbpp, bool compat);void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);#elsestatic inline void exit_aio(struct mm_struct *mm) { }static inline long do_io_submit(aio_context_t ctx_id, long nr,				struct iocb __user * __user *iocbpp,				bool compat) { return 0; }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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t