Resource Group Allocation Rule

Description

The group member allocation rule specified on a resource group is called to select one or more members from the group.

Synopsis


#include "factor.h"

void myrule(gp, nu, ldp, mlist)

RESGRP *gp;   /* Pointer to resource group. */
int   nu;   /* Number of units required. */
LOAD  *ldp;   /* Pointer to the load.    */
CSLIST *mlist;  /* Current selection list.  */

Returns

Nothing.

Install

The following function called from ucini1 installs the rule as rule 39:


sedfgs (39, myrule);
Note: If the selection list does not contain the required number of selections when the rule returns, the selection has failed.
Note: The functions seadsl and sermsl should be used to add and remove selections, respectively.
Note: Function sergms and seslrg may be called from a member selection and allocation rule, respectively, to call standard system rules.