summaryrefslogtreecommitdiff
path: root/libnetfs/netfs.h
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-17 16:59:14 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-17 16:59:14 +0000
commite0d4b8289f8346c56fe737923c7a293b91ae83ba (patch)
tree3a03684a1b99abd98f84cd682b7856ea2d94d930 /libnetfs/netfs.h
parent145956fc595c1b2574d7c0a53a17aa707496aa2a (diff)
entered into RCS
Diffstat (limited to 'libnetfs/netfs.h')
-rw-r--r--libnetfs/netfs.h42
1 files changed, 29 insertions, 13 deletions
diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h
index 68851d83..cd77f0d9 100644
--- a/libnetfs/netfs.h
+++ b/libnetfs/netfs.h
@@ -19,16 +19,32 @@
implementations. It is analogous to the diskfs library provided for
disk-based filesystems. */
-
-/* The user must define this function. Request the operation encoded
- in OPERATION. Return a 32-bit unique ID for the operation. When
- the operation completes, call netfs_operation_complete. */
-int netfs_start_operation (struct operation *operation);
-
-/* When an operation has completed, call this routine with the same
- 32-bit ID that was used in the call to netfs_start_operation. (The
- ID will be validated by the library, so there is no need for the
- user to check it if it is externally generated.) */
-void netfs_operation_complete (int id);
-
-
+struct node
+{
+ struct node *next, **prevp;
+
+ struct netnode *nn;
+
+ struct stat nn_stat;
+ int nn_stat_valid;
+
+ struct mutex lock;
+
+ int references;
+ int light_references;
+
+ mach_port_t sockaddr;
+
+ int owner;
+
+ struct trans_link translator;
+
+ struct lock_box userlock;
+
+ struct dirmod *dirmod_reqs;
+};
+
+/* The user must define this function. If NP->nn_stat_valid is false,
+ then fill N->nn_stat with current information. CRED identifies
+ the user responsible for the operation. */
+error_t netfs_validate_stat (struct node *NP, struct protid *cred);