2 * linux/include/linux/nfsiod.h
4 * Declarations for asynchronous NFS RPC calls.
8 #ifndef _LINUX_NFSIOD_H
9 #define _LINUX_NFSIOD_H
11 #include <linux/rpcsock.h>
12 #include <linux/nfs_fs.h>
17 * This is the callback handler for nfsiod requests.
18 * Note that the callback procedure must NOT sleep.
21 typedef int (*nfsiod_callback_t
)(int result
, struct nfsiod_req
*);
24 * This is the nfsiod request struct.
27 struct nfsiod_req
* rq_next
;
28 struct nfsiod_req
* rq_prev
;
29 wait_queue_head_t rq_wait
;
30 struct rpc_ioreq rq_rpcreq
;
31 nfsiod_callback_t rq_callback
;
32 struct nfs_server
* rq_server
;
33 struct inode
* rq_inode
;
34 struct page
* rq_page
;
39 int rq_groups
[NGROUPS
];
45 struct nfsiod_req
* nfsiod_reserve(struct nfs_server
*);
46 void nfsiod_release(struct nfsiod_req
*);
47 void nfsiod_enqueue(struct nfsiod_req
*);
51 #endif /* __KERNEL__ */
52 #endif /* _LINUX_NFSIOD_H */