afs: Return to userspace after AFS_NEW_BKG reqs
[openafs.git] / src / config / afs_args.h
index ee98472..af09c81 100644 (file)
@@ -12,6 +12,9 @@
 
 /*
  * AFS system call opcodes
+ *
+ * When adding new opcodes, please also update afsd_init_syscall_opcodes()
+ * for syscall tracing.
  */
 
 #define AFSOP_START_RXCALLBACK   0     /* no aux parms */
@@ -55,6 +58,7 @@
 #define AFSOP_SET_RMTSYS_FLAG   44     /* set flag if rmtsys is enabled */
 #define AFSOP_SEED_ENTROPY      45     /* Give the kernel hcrypto entropy */
 #define AFSOP_SET_INUMCALC      46     /* set inode number calculation method */
+#define AFSOP_SET_VOLUME_TTL     47     /* set the vldb cache timeout */
 
 #define AFSOP_RXLISTENER_DAEMON  48    /* starts kernel RX listener */
 
 #define AFSCALL_RXSTATS_DISABLE        0x2     /* Disable RX stats */
 #define AFSCALL_RXSTATS_CLEAR  0x4     /* Clear RX stats */
 
-/* Main afs syscall entry; this number may vary per system (i.e. defined in afs/param.h) */
-#ifndef        AFS_SYSCALL
-#define AFS_SYSCALL            31
-#endif
-
 /* arguments passed by afsd */
 #define IDTYPE_UID 0
 
@@ -146,7 +145,11 @@ struct afs_umv_param {
     afs_int32 dUnique;
 };
 
-#define AFS_USPC_UMV 1
+#ifdef AFS_DARWIN_ENV
+# define AFS_USPC_UMV 1
+#endif
+#define AFS_USPC_SHUTDOWN 2
+#define AFS_USPC_NOOP 3
 
 struct afs_uspc_param {
     afs_int32 retval;
@@ -178,6 +181,9 @@ enum {
     AFS_INUMCALC_MD5 = 1
 };
 
+/* Supported volume ttl range. */
+#define AFS_MIN_VOLUME_TTL 600
+#define AFS_MAX_VOLUME_TTL MAX_AFS_INT32
 
 /*
  * Note that the AFS_*ALLOCSIZ values should be multiples of sizeof(void*) to