1
2
3
4
5
6
7
8 #ifndef _LINUX_NFSIOD_H
9 #define _LINUX_NFSIOD_H
10
11 #include <linux/rpcsock.h>
12
13 #ifdef __KERNEL__
14
15
16
17
18
19 struct nfsiod_req;
20 typedef void (*nfsiod_done_fn_t)(int result, struct nfsiod_req *);
21
22
23
24
25 struct nfsiod_req {
26 struct nfsiod_req * rq_next;
27 struct nfsiod_req * rq_prev;
28 struct nfs_server * rq_server;
29 struct wait_queue * rq_wait;
30 struct rpc_ioreq rq_rpcreq;
31 nfsiod_done_fn_t rq_callback;
32 void * rq_cdata;
33 };
34
35 struct nfsiod_req * nfsiod_reserve(struct nfs_server *, nfsiod_done_fn_t);
36 void nfsiod_release(struct nfsiod_req *);
37 int nfsiod_enqueue(struct nfsiod_req *);
38 int nfsiod(void);
39
40
41 #endif
42 #endif