libxnvme_be.h#

Structs#

xnvme_be_attr#

struct xnvme_be_attr#

SPDX-FileCopyrightText: Samsung Electronics Co., Ltd.

SPDX-License-Identifier: BSD-3-Clause Representation of xNVMe library backend attributes

Public Members

const char *name#

Backend name.

uint8_t enabled#

Whether the backend is ‘enabled’.

uint8_t _rsvd[15]#

Functions#

xnvme_be_attr_fpr#

int xnvme_be_attr_fpr(FILE *stream, const struct xnvme_be_attr *attr, int opts)#

Prints the given backend attribute to the given output stream.

Parameters:
  • stream – output stream used for printing

  • attr – Pointer to the xnvme_be_attr to print

  • opts – printer options, see xnvme_pr

Returns:

On success, the number of characters printed is returned.

xnvme_be_attr_pr#

int xnvme_be_attr_pr(const struct xnvme_be_attr *attr, int opts)#

Prints the given backend attribute to stdout.

Parameters:
Returns:

On success, the number of characters printed is returned.

xnvme_be_registry_fpr#

int xnvme_be_registry_fpr(FILE *stream, enum xnvme_pr opts)#

Prints all the backends in the backend registry to the given output stream.

Parameters:
  • stream – output stream used for printing

  • opts – printer options, see xnvme_pr

Returns:

On success, the number of characters printed is returned.

xnvme_be_registry_pr#

int xnvme_be_registry_pr(enum xnvme_pr opts)#

Prints all the backends in the backend registry to stdout.

Parameters:
Returns:

On success, the number of characters printed is returned.