bproc_access -- Check if the current user may use a cluster node.
#include <sys/bproc.h> int bproc_access (int node, int mode); int _bproc_access (struct bproc_node_info_t *nodeinfo, int mode);
- The node number to check.
- The mode bits to check against.
- A filled-in
bproc_node_infostructure to check against.
The current user's ability to execute processes on the specified cluster
node is checked. The
mode parameter specifies the mode bits to
See the Administrator's Guide for details of the semantics of node ownership and how the settings interact with schedulers.
If a process may be started on the node, 0 is returned.
If the node is not available or there is an error, -1 is returned and
errno is set.
BProcsystem is not available.
BProcsystem is loaded but is not configured or active.
- This user does not have permission to start jobs on the node.
- Insufficient kernel memory was available.