bproc_requestfile

Name

bproc_requestfile -- get status information for single node

Synopsis

#include <sys/bproc.h>

int bproc_requestfile( char *filename );

Description

bproc_requestfile uses the BProc file cache interface to request a file. If successful, bproc_requestfile will return an open file descriptor for the file. The file will be opened in read-only mode.

The file cache is a feature of the slave side in BProc. This call will only work on slave nodes.

Return Value

On success, bproc_requestfile will return a file descriptor number. On error, it will return -1 and errno will be set appropriately.

Errors

EINVAL

bproc_requestfile was called on the front end.

EFAULT

filename is an invalid pointer.

ENOENT

The file cache either failed or refused to fetch filename.

EBUSY

The BProc system is not running.

See Also

bproc_nodelist(2), bproc_nodestatus(2)