libxnvme_topology.h#

Structs#

xnvme_controller#

struct xnvme_controller#

Public Members

struct xnvme_dev *dev#
struct xnvme_dev *namespaces#

xnvme_namespace#

struct xnvme_namespace#

Public Members

struct xnvme_dev *dev#

xnvme_subsystem#

struct xnvme_subsystem#

SPDX-FileCopyrightText: Samsung Electronics Co., Ltd.

SPDX-License-Identifier: BSD-3-Clause

Public Members

struct xnvme_dev *dev#
struct xnvme_dev *controllers#

Functions#

xnvme_controller_get_registers#

int xnvme_controller_get_registers(struct xnvme_dev *dev, struct xnvme_spec_ctrlr_bar *bar)#

Read NVMe PCIe controller reigsters.

Parameters:
  • dev – Device handle obtained with xnvme_dev_open()

  • bar – NVMe PCIe BAR0 registers buffer to save read values

Returns:

On success, 0 is return. On error, a non-zero value is returned.

xnvme_controller_reset#

int xnvme_controller_reset(struct xnvme_dev *dev)#

xnvme_namespace_rescan#

int xnvme_namespace_rescan(struct xnvme_dev *dev)#

xnvme_subsystem_reset#

int xnvme_subsystem_reset(struct xnvme_dev *dev)#