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.

const char *descr#

Human-readable description.

uint32_t caps#

Bitmask of xnvme_be_cap (0 = legacy/mixin-based)

uint8_t _rsvd[4]#

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_get#

const struct xnvme_be_attr *xnvme_be_attr_get(int idx)#

Returns the backend attribute at the given index.

Parameters:
  • idx – Index into the list of backend configurations

Returns:

Pointer to the attribute, NULL when idx is past the end

xnvme_be_attr_list_fpr#

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

Prints attributes of backend configurations 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_attr_list_pr#

int xnvme_be_attr_list_pr(enum xnvme_pr opts)#

Prints attributes of backend configurations to stdout.

Parameters:
  • 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.