ArmSys Support
ArmsysApi  0.12.18
BBlockDevice Class Referenceabstract

#include <BFilesys.h>

Inheritance diagram for BBlockDevice:
BSdio

Public Member Functions

 BBlockDevice ()
 
virtual ~BBlockDevice ()
 
virtual BError init ()
 
virtual BError close ()
 
virtual BUInt32 numDevices ()
 
virtual BError status (BUInt32 dev)
 
virtual BError getInfo (BUInt32 dev, BUInt32 &nBlocks, BUInt32 &blockSize, BUInt32 &eraseBlockSize)=0
 
virtual BError read (BUInt32 dev, BUInt32 block, void *data, BUInt32 nBlocks)=0
 
virtual BError write (BUInt32 dev, BUInt32 block, const void *data, BUInt32 nBlocks)=0
 
virtual BError trim (BUInt32 dev, BUInt32 block, BUInt32 nBlocks)
 
virtual BError erase (BUInt32 dev, BUInt32 block, BUInt32 nBlocks)
 

Protected Attributes

BUInt onumDevices
 The number of devices. More...
 

Constructor & Destructor Documentation

◆ BBlockDevice()

BBlockDevice::BBlockDevice ( )

◆ ~BBlockDevice()

BBlockDevice::~BBlockDevice ( )
virtual

Member Function Documentation

◆ close()

BError BBlockDevice::close ( )
virtual

◆ erase()

BError BBlockDevice::erase ( BUInt32  dev,
BUInt32  block,
BUInt32  nBlocks 
)
virtual

◆ getInfo()

virtual BError BBlockDevice::getInfo ( BUInt32  dev,
BUInt32 nBlocks,
BUInt32 blockSize,
BUInt32 eraseBlockSize 
)
pure virtual

Implemented in BSdio.

◆ init()

BError BBlockDevice::init ( )
virtual

◆ numDevices()

BUInt32 BBlockDevice::numDevices ( )
virtual

◆ read()

virtual BError BBlockDevice::read ( BUInt32  dev,
BUInt32  block,
void *  data,
BUInt32  nBlocks 
)
pure virtual

Implemented in BSdio.

◆ status()

BError BBlockDevice::status ( BUInt32  dev)
virtual

◆ trim()

BError BBlockDevice::trim ( BUInt32  dev,
BUInt32  block,
BUInt32  nBlocks 
)
virtual

Reimplemented in BSdio.

◆ write()

virtual BError BBlockDevice::write ( BUInt32  dev,
BUInt32  block,
const void *  data,
BUInt32  nBlocks 
)
pure virtual

Implemented in BSdio.

Member Data Documentation

◆ onumDevices

BUInt BBlockDevice::onumDevices
protected

The number of devices.


The documentation for this class was generated from the following files: