---
title: BioReadHook
description: "拦截读接口。"
url: https://www.hikunpeng.com/document/detail/zh/boostsds/BoostIO/kunpengboostIO_021.html
sourcePath: /source/zh/boostsds/BoostIO/kunpengboostIO_021.html
indexId: 174ae90f89b26ba6f715cbae45002094d15d6364341345da0d9e7ce0130c4ac051
---
# BioReadHook

#### 函数定义

拦截读接口。


#### 实现方法

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


#### 参数说明


**表1 参数说明**

| 参数名 | 数据类型 | 参数类型 | 描述 |
| --- | --- | --- | --- |
| inode | uint64\_t | 入参 | 文件inode。 |
| buff | char\* | 入参 | 待读取数据buffer。 |
| count | uint64\_t | 入参 | 待读取的数据长度。 |
| offset | uint64\_t | 入参 | 待读取的数据偏移。 |
| readLen | int\* | 出参 | 实际读取数据长度。 |


#### 返回值


**表2 返回值说明**

| 返回值 | 描述 |
| --- | --- |
| 0 | 操作成功。 |
| 非0 | 操作失败。 |
