diff --git a/src/common/gres.c b/src/common/gres.c index dc7d9547862f8f908c2c41a74c1f770b06938508..e18fe9b3464a7927609392a0b248ee219f2fae43 100644 --- a/src/common/gres.c +++ b/src/common/gres.c @@ -326,7 +326,7 @@ fini: slurm_mutex_unlock(&gres_context_lock); */ /* - * Provide a plugin-specific help message + * Provide a plugin-specific help message for salloc, sbatch and srun * IN/OUT msg - buffer provided by caller and filled in by plugin * IN msg_size - size of msg buffer in bytes */ @@ -588,7 +588,7 @@ extern int gres_plugin_node_config_validate(char *node_name, } /* - * Note that a node's configuration has been modified. + * Note that a node's configuration has been modified (e.g. "scontol update ..") * IN node_name - name of the node for which the gres information applies * IN orig_config - Gres information supplied from slurm.conf * IN/OUT new_config - Updated gres info from slurm.conf if FastSchedule=0 diff --git a/src/common/gres.h b/src/common/gres.h index 8cd83fce4f1a7ecbb2923581caf8f403ba92221b..b9ab5fe759199baf43fe5e03e93ff45b3819c865 100644 --- a/src/common/gres.h +++ b/src/common/gres.h @@ -63,18 +63,23 @@ extern int gres_plugin_fini(void); */ /* - * Provide a plugin-specific help message + * Perform reconfig, re-read any configuration files + * OUT did_change - set if gres configuration changed + */ +extern int gres_plugin_reconfig(bool *did_change); + +/* + * Provide a plugin-specific help message for salloc, sbatch and srun * IN/OUT msg - buffer provided by caller and filled in by plugin * IN msg_size - size of msg buffer in bytes */ extern int gres_plugin_help_msg(char *msg, int msg_size); /* - * Perform reconfig, re-read any configuration files - * OUT did_change - set if gres configuration changed + ************************************************************************** + * PLUGIN CALLS FOR SLURMD DAEMON * + ************************************************************************** */ -extern int gres_plugin_reconfig(bool *did_change); - /* * Load this node's configuration (i.e. how many resources it has) */ @@ -85,6 +90,11 @@ extern int gres_plugin_load_node_config(void); */ extern int gres_plugin_pack_node_config(Buf buffer); +/* + ************************************************************************** + * PLUGIN CALLS FOR SLURMCTLD DAEMON * + ************************************************************************** + */ /* * Unpack this node's configuration from a buffer * IN buffer - message buffer to unpack @@ -113,7 +123,7 @@ extern int gres_plugin_node_config_validate(char *node_name, char **reason_down); /* - * Note that a node's configuration has been modified. + * Note that a node's configuration has been modified (e.g. "scontol update ..") * IN node_name - name of the node for which the gres information applies * IN orig_config - Gres information supplied from slurm.conf * IN/OUT new_config - Updated gres info from slurm.conf if FastSchedule=0