<--- Cannot embed stylesheet: [Errno 2] No such file or directory: '../../../aros.css' --->

sdcard

Index


GetBlkSize() GetRdskLba()    

GetBlkSize()

Synopsis

ULONG GetBlkSize(
   struct IORequest *io)

Function

Return the sector-size exponent stored for the opened unit's
bus.

Inputs

io - Request for a successfully opened sdcard.device unit.
     Both io and io_Unit must be valid. Keep the unit open
     throughout the call.

Result

The stored base-two exponent of the sector size in bytes,
returned as ULONG. For example, 9 denotes 512-byte sectors.
This is not a byte count.

Notes

The call reads the cached bus value without issuing device
I/O or checking media presence. It leaves the request and its
error field unchanged.

No error result is provided for an unopened, closed or invalid
request. The pointers are not validated.

GetRdskLba()

Synopsis

ULONG GetRdskLba(
   struct IORequest *io)

Function

Return the fixed value zero. This entrypoint does not search
for or read a rigid disk block.

Inputs

io - Request for a successfully opened sdcard.device unit.
     Both io and io_Unit must be valid. Keep the unit open
     throughout the call.

Result

Always zero. The value does not establish that a rigid disk
block exists at logical block zero.

Notes

No device I/O is issued. The request and its error field are
left unchanged. This entrypoint provides no discovery status.