njb_get_disk_usage(3)

NAME

NJB_Get_Disk_Usage - Get total bytes and free bytes from
NJB

LIBRARY

libnjb

SYNOPSIS

#include <sys/types.h> #include <libnjb.h>
extern int njb_error
int  NJB_Get_Disk_Usage(njb_t  *njb,  off_t *btotal, off_t
*bfree)

DESCRIPTION

This function returns the total available and total free
disk space on the NJB, in bytes. These values are placed into
the memory locations pointed to by *btotaland *bfree, respective
ly.

RETURN VALUES

NJB_Get_Disk_Usage returns 0 on success. The values point
ed to by *btotaland *bfreehavetobe64-bitunsignedintegers. If an
error occurred, -1 is returned and njb_error is set as follows:
EO_BADSTATUS
The NJB returned a non-zero status
EO_USBCTL An I/O failure occurred on the USB control pipe.

March 2001
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout