System Information

Functions

kvmStatus kvmDeviceDiskStatus (kvmHandle h, int *present)
 
kvmStatus kvmKmfGetUsage (kvmHandle h, uint32 *totalSectorCount, uint32 *usedSectorCount)
 
kvmStatus kvmDeviceDiskSize (kvmHandle h, uint32 *diskSize)
 
kvmStatus kvmDeviceGetSerialNumber (kvmHandle h, unsigned int *serial)
 
kvmStatus kvmDeviceGetSoftwareInfo (kvmHandle h, int32 itemCode, unsigned int *major, unsigned int *minor, unsigned int *build, unsigned int *flags)
 
kvmStatus kvmDeviceFlashLeds (kvmHandle h)
 

Detailed Description

Function Documentation

◆ kvmDeviceDiskSize()

kvmStatus kvmDeviceDiskSize ( kvmHandle  h,
uint32 diskSize 
)
C#
static Kvmlib.STATUS DeviceDiskSize(Handle h, out Int32 diskSize);

Get disk size, reported in number of (512 byte) sectors.

Parameters
[in]hAn open kvmHandle.
[out]diskSizeDisk size in number of (512 byte) sectors.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmDeviceDiskStatus()

kvmStatus kvmDeviceDiskStatus ( kvmHandle  h,
int *  present 
)
C#
static Kvmlib.STATUS DeviceDiskStatus(Handle h, out Int32 present);

Check if the SD memory card is present.

Note
This function is not supported by all devices.
Parameters
[in]hAn open kvmHandle.
[out]presentNon-zero means that SD memory card is present.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmDeviceFlashLeds()

kvmStatus kvmDeviceFlashLeds ( kvmHandle  h)
C#
static Kvmlib.STATUS DeviceFlashLeds(Handle h);

Flash all LEDs on the opened Memorator device

Parameters
[in]hAn open kvmHandle.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmDeviceGetSerialNumber()

kvmStatus kvmDeviceGetSerialNumber ( kvmHandle  h,
unsigned int *  serial 
)
C#
static Kvmlib.STATUS DeviceGetSerialNumber(Handle h, out Int32 serial);

Get serial number related to the Memorator handle.

Parameters
[in]hAn open kvmHandle.
[out]serialSerial number of connected device.
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmDeviceGetSoftwareInfo()

kvmStatus kvmDeviceGetSoftwareInfo ( kvmHandle  h,
int32  itemCode,
unsigned int *  major,
unsigned int *  minor,
unsigned int *  build,
unsigned int *  flags 
)
C#
static Kvmlib.STATUS DeviceGetSoftwareInfo(Handle h, VersionInfo itemCode, out Int32 major, out Int32 minor, out Int32 build, out Int32 flags);

Get software version information.

Parameters
[in]hAn open kvmHandle.
[in]itemCodeAn item code specifying the type of version to get. kvm_SWINFO_xxx
[out]majorMajor version number
[out]minorMinor version number
[out]buildBuild number
[out]flagsFor internal use only
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure

◆ kvmKmfGetUsage()

kvmStatus kvmKmfGetUsage ( kvmHandle  h,
uint32 totalSectorCount,
uint32 usedSectorCount 
)
C#
static Kvmlib.STATUS KmfGetUsage(Handle h, out Int32 totalSectorCount, out Int32 usedSectorCount);

Get disk usage statistics, reported in number of (512 byte) sectors.

Parameters
[in]hAn open kvmHandle.
[out]totalSectorCountTotal number of sectors devoted for logging
[out]usedSectorCountNumber of logging sectors used
Returns
kvmOK (zero) if success
kvmERR_xxx (negative) if failure