---
name: "nvme_mi_admin_get_nsid_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_nsid_log"
---

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

Helper for Get Log Page functions

## NAME

nvme\_mi\_admin\_get\_nsid\_log - Helper for Get Log Page functions

## SYNOPSIS

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

## ARGUMENTS

- ctrl

  Controller to query

- rae

  Retain Asynchronous Events

- lid

  Log identifier

- nsid

  Namespace 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 namespace ID *nsid*. 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.
