summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 15b7d0f..9704809 100644
--- a/misc.c
+++ b/misc.c
@@ -108,7 +108,15 @@ int check_euid(Options *op)
} /* check_euid() */
-
+/*
+ * Determine if the installation is Single RM or a multi-RM installation.
+ * Return TRUE, if it is a multi-RM install, else return FALSE.
+ */
+int is_multi_rm_install(const Options *op)
+{
+ return ((op->num_rm_instances > NV_MODULE_INSTANCE_ZERO) &&
+ (op->num_rm_instances <= NV_MAX_MODULE_INSTANCES));
+}
/*
* adjust_cwd() - this function scans through program_name (ie