Rate This Document
Findability
Accuracy
Completeness
Readability

DAS Interfaces

Interface Description

DAS smart prefetch interfaces.

Interface Format

  • int32_t Rcache_CeateDasModule(DasModuleParam *createInstanceParam);
  • void Rcache_ExitDasModule(void);
  • int32_t Rcache_PutDasInfo(DasKvParam *params);

Parameters

Parameter

Type

Description

Input/Output

createInstanceParam

Pointer to the structure of the callbacks registered by the user

Callbacks to be registered by the user.

Input

params

Pointer to the structure of the I/O information submitted by the user

The user submits I/O information to the smart prefetch interfaces.

Input

ret

Integer

If the interface is successfully invoked, 0 is returned. Otherwise, an error code is returned.

Output

Data Structures

Table 1 struct DasOPS

Member

Type

Description

SubmitDasPrefetch

Function pointer

Submits prefetch I/Os.

logFunc

Function pointer

Prints DAS internal logs.

Table 2 struct DasModuleParam

Member

Type

Description

ops

struct DasOPS structure pointer

Callbacks registered by the user.

logger

Pointer

Log module object of the user.

cacheLineSize

Integer

Cache line size.

Table 3 struct DasKvParam

Member

Type

Description

offset

Integer

Start position of the I/O to be prefetched, in bytes.

len

Integer

Length of the I/O to be prefetched, in bytes.

timeStamp

Integer

I/O timestamp, in nanoseconds.

lunID

Integer

Logical unit ID of the I/O.

Dependency

ksal/das.h