Rate This Document
Findability
Accuracy
Completeness
Readability

BioReadHook

Function Definition

Intercepts data reads.

Implementation

int BioReadHook(uint64_t inode, char *buff, uint64_t count, uint64_t offset, int *readLen)

Parameters

Table 1 Parameters

Parameter

Data Type

Input/Output

Description

inode

uint64_t

Input

File inode.

buff

char*

Input

Data buffer.

count

uint64_t

Input

Length of data to be read.

offset

uint64_t

Input

Offset of data to be read.

readLen

int*

Output

Real length of data to be read.

Return Values

Table 2 Return values

Return Value

Description

0

The operation is successful.

Other

The operation failed.