ONVMe target

Overview

API for control ONVMe target of NVMe Over Fabrics

Copyright (C) 2004-2022 OKTET Labs Ltd. More…

// typedefs

typedef struct tapi_nvme_onvme_target_opts tapi_nvme_onvme_target_opts;
typedef struct tapi_nvme_onvme_target_proc tapi_nvme_onvme_target_proc;

// structs

struct tapi_nvme_onvme_target_opts;
struct tapi_nvme_onvme_target_proc;

// global functions

te_errno tapi_nvme_onvme_target_init(tapi_nvme_target* target, void* opts);
te_errno tapi_nvme_onvme_target_setup(tapi_nvme_target* target);
void tapi_nvme_onvme_target_cleanup(tapi_nvme_target* target);
void tapi_nvme_onvme_target_fini(tapi_nvme_target* target);

// macros

#define TAPI_NVME_ONVME_TARGET
#define TAPI_NVME_ONVME_TARGET_METHODS
#define TAPI_NVME_ONVME_TARGET_OPTS_DEFAULTS
#define TAPI_NVME_ONVME_TARGET_PROC_DEFAULTS

Detailed Documentation

API for control ONVMe target of NVMe Over Fabrics

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Typedefs

typedef struct tapi_nvme_onvme_target_opts tapi_nvme_onvme_target_opts

ONVMe target opts

typedef struct tapi_nvme_onvme_target_proc tapi_nvme_onvme_target_proc

ONVMe target context

Global Functions

te_errno tapi_nvme_onvme_target_init(tapi_nvme_target* target, void* opts)

Init ONVMe implementation of target

Parameters:

target

Target for setup

opts

ONVMe target options

Returns:

Status code

te_errno tapi_nvme_onvme_target_setup(tapi_nvme_target* target)

Setup ONVMe target

Parameters:

target

Target for setup

Returns:

Status code

void tapi_nvme_onvme_target_cleanup(tapi_nvme_target* target)

Cleanup ONVMe target

Parameters:

target

Target for cleanup

Returns:

Status code

void tapi_nvme_onvme_target_fini(tapi_nvme_target* target)

Deinit ONVMe target

Parameters:

target

Target for deinit

Returns:

Status code

Macros

#define TAPI_NVME_ONVME_TARGET

Default ONVMe target initialization

#define TAPI_NVME_ONVME_TARGET_METHODS

ONVMe target methods

#define TAPI_NVME_ONVME_TARGET_OPTS_DEFAULTS

ONVMe target opts defaults

#define TAPI_NVME_ONVME_TARGET_PROC_DEFAULTS

Default options for ONVMe target process