CLU_CONNECT(3)

NAME
clu_connect, clu_disconnect - High-level cluster infrastructure connect/disconnect functions.

SYNOPSIS
#include <magma.h>

int clu_connect(void);
int clu_disconnect(int fd);

DESCRIPTION
The clu_connect() function attempts to connect to the cluster software running on the local machine. If it successfully does so, it registers for events and returns a file descriptor.

The returned file descriptor may be waited on using the select(2) system call. The clu_disconnect() function cleans up all related descriptors, threads, and other resources and unmaps the connected cluster plugin.

RETURN VALUE
The clu_connect() function returns a file descriptor (>= 0) on success or a negative value indicating the error incurred. The clu_disconnect() function returns a file descriptor on success, or -1 on failure.

The clu_disconnect() returns 0.

FILES

/usr/lib/magma/* - Cluster plugins.

SEE ALSO
clu_get_event(3), select(2)