libnvme_get_log_dynamic_chunk-libnvme3(2)

libnvme_get_log_dynamic_chunk-libnvme32

Get log page data with dynamic chunk size

Usage

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.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.