---
name: "libnvme_get_log_dynamic_chunk-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_get_log_dynamic_chunk-libnvme3"
---

# libnvme\_get\_log\_dynamic\_chunk-libnvme3(2)

Get log page data with dynamic chunk size

## NAME

libnvme\_get\_log\_dynamic\_chunk - Get log page data with dynamic chunk size

## SYNOPSIS

**int libnvme\_get\_log\_dynamic\_chunk** **(struct libnvme\_transport\_handle \*hdl** *,* **struct libnvme\_passthru\_cmd \*cmd** *,* **bool rae** *,* **\_\_u32 xfer\_len** *);*

## ARGUMENTS

- hdl

  Transport handle

- cmd

  Passthru command

- rae

  Retain asynchronous events

- xfer\_len

  Initial max log transfer size per request to split the total. Dynamically divide chunk size by 2 when any error is encountered, and retry until the chunk size is down to 4k or the command succeeds. This allows for successful retrieval of log pages that may have a smaller maximum transfer size than the controller's MDTS value, without requiring the caller to know the optimal chunk size in advance.

## RETURN

0 on success, the nvme command status if a response was received (see *enum nvme\_status\_field*) or a negative error otherwise.
