summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-18 23:31:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-18 23:31:47 +0000
commit38fa2b80515c47c54d69af5adf5746174706f14e (patch)
treed774ecc6a25dc9c89bb318f4e22580d6ccddfdc0 /nuttx/fs/nfs/nfs.h
parent607ce6753b14ac62010faab2e174b9a34e26d00f (diff)
downloadpx4-nuttx-38fa2b80515c47c54d69af5adf5746174706f14e.tar.gz
px4-nuttx-38fa2b80515c47c54d69af5adf5746174706f14e.tar.bz2
px4-nuttx-38fa2b80515c47c54d69af5adf5746174706f14e.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4634 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs.h')
-rw-r--r--nuttx/fs/nfs/nfs.h46
1 files changed, 25 insertions, 21 deletions
diff --git a/nuttx/fs/nfs/nfs.h b/nuttx/fs/nfs/nfs.h
index 497cfd666..a88e5b91c 100644
--- a/nuttx/fs/nfs/nfs.h
+++ b/nuttx/fs/nfs/nfs.h
@@ -46,6 +46,8 @@
/****************************************************************************
* Included Files
****************************************************************************/
+
+#include "nfs_mount.h"
/****************************************************************************
* Pre-processor Definitions
@@ -207,15 +209,15 @@ struct nfsd_args
struct nfsd_srvargs
{
- struct nfsd *nsd_nfsd; /* Pointer to in kernel nfsd struct */
- uid_t nsd_uid; /* Effective uid mapped to cred */
- uint32_t nsd_haddr; /* IP address of client */
- int nsd_authlen; /* Length of auth string (ret) */
- unsigned char *nsd_authstr; /* Auth string (ret) */
- int nsd_verflen; /* and the verifier */
+ struct nfsd *nsd_nfsd; /* Pointer to in kernel nfsd struct */
+ uid_t nsd_uid; /* Effective uid mapped to cred */
+ uint32_t nsd_haddr; /* IP address of client */
+ int nsd_authlen; /* Length of auth string (ret) */
+ unsigned char *nsd_authstr; /* Auth string (ret) */
+ int nsd_verflen; /* and the verifier */
unsigned char *nsd_verfstr;
struct timeval nsd_timestamp; /* timestamp from verifier */
- uint32_t nsd_ttl; /* credential ttl (sec) */
+ uint32_t nsd_ttl; /* credential ttl (sec) */
};
/* Stats structure */
@@ -258,10 +260,6 @@ struct nfsstats
uint64_t srvvop_writes;
};
-/****************************************************************************
- * Public Types
- ****************************************************************************/
-
/* The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts.
* What should be in this set is open to debate, but I believe that since
* I/O system calls on ufs are never interrupted by signals the set should
@@ -336,19 +334,25 @@ struct nfsrv_descript
/****************************************************************************
* Public Data
****************************************************************************/
-/*
-extern int nfs_niothreads;
-extern TAILQ_HEAD(nfssvc_sockhead, nfssvc_sock) nfssvc_sockhead;
-extern int nfssvc_sockhead_flag;
-
-extern struct pool nfsreqpl;
-extern struct pool nfs_node_pool;
-extern TAILQ_HEAD(nfsdhead, nfsd) nfsd_head;
-extern int nfsd_head_flag;
-*/
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
+#undef EXTERN
+#if defined(__cplusplus)
+#define EXTERN extern "C"
+extern "C" {
+#else
+#define EXTERN extern
+#endif
+
+EXTERN void nfs_semtake(struct nfsmount *nmp);
+EXTERN void nfs_semgive(struct nfsmount *nmp);
+EXTERN int nfs_checkmount(struct nfsmount *nmp);
+#undef EXTERN
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _NFS_NFS_H */