/*
* 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 */
#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
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;
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