---
name: "nvme_mi_admin_get_endgid_log"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_mi_admin_get_endgid_log"
---

# nvme\_mi\_admin\_get\_endgid\_log(2)

Helper for Get Endurance Group ID Log Page functions

## NAME

nvme\_mi\_admin\_get\_endgid\_log - Helper for Get Endurance Group ID Log Page functions

## SYNOPSIS

**int nvme\_mi\_admin\_get\_endgid\_log** **(nvme\_mi\_ctrl\_t ctrl** *,* **bool rae** *,* **enum nvme\_cmd\_get\_log\_lid lid** *,* **\_\_u16 endgid** *,* **\_\_u32 len** *,* **void \*log** *);*

## ARGUMENTS

- ctrl

  Controller to query

- rae

  Retain Asynchronous Events

- lid

  Log identifier

- endgid

  Endurance Group ID

- len

  length of log buffer

- log

  pointer for resulting log data

## DESCRIPTION

Performs a Get Log Page Admin command for a specific log ID *lid* and endurance group ID *endgid*. Log data is expected to be *len* bytes, and is stored in *log* on success. The *rae* flag is passed as-is to the Get Log Page command, and is specific to the Log Page requested.

## RETURN

The nvme command status if a response was received (see *enum nvme\_status\_field*) or -1 with errno set otherwise.
