The node of interest
The user identifier number
A pointer to a list of group identifier numbers
The number of elements in the previous arguments array
beostat_is_node_available will determine if the given user with specified uid and belonging to the groups in gid_list has permission to run on a given node.
See the manual page for beostat_get_avail_nodes_by_id for a example of a similar function.
This function relies on the Beostat subsystem, which consists of the proc filesystem on the remote node, the sendstatsdaemon on the remote node, the recvstats daemon on the master node, and two shared memory files in the directory /var/shm. If any part of the system breaks down, this function could fail.