SMREmulator 1.0
ShingledMagneticRecordingEmulator

emutypes.h File Reference

Defines the data types used by the SMR Emulator. More...

#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef int32_t band_t
 Defines a data type for passing band numbers. All band numbers are 32-bit values.
typedef int32_t rba_t
 Defines a data type for passing Relative Block Addresses. All RBAs are 32-bit values.

Enumerations

enum  inq_t
 

Defines the types of inquiry operations that can be used with inquiry().

More...
enum  svc_act_t
 

Defines the Service Actions that can be used with managebands().

More...

Detailed Description

Defines the data types used by the SMR Emulator.

Author:
Anand Suresh <anandsuresh@cmu.edu>

Definition in file emutypes.h.


Enumeration Type Documentation

enum inq_t

Defines the types of inquiry operations that can be used with inquiry().

Parameters:
INQ_BLKSIZEReturns the size of a Block.
INQ_BNDCOUNTReturns the size of a Band.

Definition at line 39 of file emutypes.h.

enum svc_act_t

Defines the Service Actions that can be used with managebands().

Parameters:
SVC_GETPTRRetrieves the Write Pointer for a band
SVC_SETPTRSets the Write Pointer for a band
SVC_GETMULTIPLEReturns the Write Pointer for multiple bands
SVC_RESETALLResets the Write Pointers for all bands to 0
SVC_GETBANDCONFIGGets the Band Configuration for a band
SVC_SETBANDCONFIGSets the Band Configuration for a band

Definition at line 55 of file emutypes.h.