root/include/linux/nfsiod.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * linux/include/linux/nfsiod.h
   3  *
   4  * Declarations for asynchronous NFS RPC calls.
   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  * This is the callback handler for nfsiod requests.
  17  * Note that the callback procedure must NOT sleep.
  18  */
  19 struct nfsiod_req;
  20 typedef void    (*nfsiod_done_fn_t)(int result, struct nfsiod_req *);
  21 
  22 /*
  23  * This is the nfsiod request struct.
  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 /* __KERNEL__ */
  42 #endif /* _LINUX_NFSIOD_H */

/* [previous][next][first][last][top][bottom][index][help] */