---
title: BioListAll
description: "对象列举接口，要求使用者调用BioFreeListResources接口释放列举结果的内存资源。"
url: https://www.hikunpeng.com/document/detail/zh/boostsds/BoostIO/kunpengboostIO_013.html
sourcePath: /source/zh/boostsds/BoostIO/kunpengboostIO_013.html
indexId: 466f96c2e72437d9c3a6dffd42091f7f082a090f681791abb60ee12c83960d3751
---
# BioListAll

#### 函数定义

对象列举接口，要求使用者调用BioFreeListResources接口释放列举结果的内存资源。


#### 实现方法

CResult BioListAll(uint64_t tenantId, const char *prefix, ObjStat **objs, uint64_t *objNum)


#### 参数说明


**表1 参数说明**

| 参数名 | 数据类型 | 参数类型 | 描述 |
| --- | --- | --- | --- |
| tenantId | uint64\_t | 入参 | 租户ID。 |
| prefix | const char\* | 入参 | 待匹配的对象前缀。 |
| objs | ObjStat\*\* | 出参 | 列举对象结果。 |
| objNum | uint64\_t\* | 出参 | 列举对象的数量。 |


#### 返回值


**表2 返回值说明**

| 返回值 | 描述 |
| --- | --- |
| RET\_CACHE\_OK | 操作成功。 |
| RET\_CACHE\_NOT\_FOUND | Cache实例不存在。 |
| RET\_CACHE\_EPERM | 传入参数错误。 |
| RET\_CACHE\_NOT\_READY | BoostIO服务未就绪。 |
| RET\_CACHE\_NEED\_RETRY | 需要外部重试。 |
| RET\_CACHE\_NO\_SPACE | 内存空间不足。 |
| RET\_CACHE\_ERROR | 操作失败。 |
