bproc_proclist

Name

bproc_proclist -- get status information for single node

Synopsis

#include <sys/bproc.h>

int bproc_proclist( int node, struct bproc_proc_info_t ** list );

Description

bproc_proclist returns a list of struct bproc_proc_info_t structures - one for remote process being managed by the BProc master daemon. A pointer to this list is stored in the pointer pointed to by the list parameter. The return value is the number of elements in the list. The memory for the list is allocated using malloc and it is up to the caller to free this memory.

struct bproc_proc_info_t {
    int pid;
    int node;
};

Return Value

On success, bproc_proclist will return the number of elements in the list. On error, it will return -1 and errno will be set appropriately.

Errors

EBUSY

The BProc system is not running.

See Also

bproc_pidnode(2)