/
githubmirror
/
nvme-cli
Обзор
Документация
Войти
/
githubmirror
/
nvme-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
plugins/feat/feat-nvme.h
54 строки
2 KB
Daniel Wagner
plugins: split vendor from core plugins
12 авг 2026, 12:54
12 авг 2026, 12:54
c248f4b
Код
Авторство
О чём код?
/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "cmd.h" #undef CMD_INC_FILE #define CMD_INC_FILE plugins/feat/feat-nvme #include "define_cmd.h" #if !defined(FEAT_NVME) || defined(CMD_HEADER_MULTI_READ) #define FEAT_NVME #define FEAT_PLUGIN_VERSION "1.0" #define POWER_MGMT_DESC "Get and set power management feature" #define PERFC_DESC "Get and set perf characteristics feature" #define HCTM_DESC "Get and set host controlled thermal management feature" #define TIMESTAMP_DESC "Get and set timestamp feature" #define TEMP_THRESH_DESC "Get and set temperature threshold feature" #define ARBITRATION_DESC "Get and set arbitration feature" #define VOLATILE_WC_DESC "Get and set volatile write cache feature" #define POWER_LIMIT_DESC "Get and set power limit feature" #define POWER_THRESH_DESC "Get and set power threshold feature" #define POWER_MEAS_DESC "Get and set power measurement feature" #define ERR_RECOVERY_DESC "Get and set error recovery feature" #define NUM_QUEUES_DESC "Get and set number of queues feature" #define HOST_BEHAVIOR_DESC "Get and set host behavior support feature" #define FEAT_ARGS(n, ...) \ NVME_ARGS(n, ##__VA_ARGS__, OPT_FLAG("save", 's', NULL, save), \ OPT_BYTE("sel", 'S', &cfg.sel, sel)) PLUGIN(NAME_CORE("feat", "NVMe feature extensions", FEAT_PLUGIN_VERSION), COMMAND_LIST( ENTRY("arbitration", ARBITRATION_DESC, feat_arbitration) ENTRY("power-mgmt", POWER_MGMT_DESC, feat_power_mgmt) ENTRY("temp-thresh", TEMP_THRESH_DESC, feat_temp_thresh) ENTRY("volatile-wc", VOLATILE_WC_DESC, feat_volatile_wc) ENTRY("num-queues", NUM_QUEUES_DESC, feat_num_queues) ENTRY("timestamp", TIMESTAMP_DESC, feat_timestamp) ENTRY("hctm", HCTM_DESC, feat_hctm) ENTRY("host-behavior-support", HOST_BEHAVIOR_DESC, feat_host_behavior_support) ENTRY("perf-characteristics", PERFC_DESC, feat_perfc) ENTRY("power-limit", POWER_LIMIT_DESC, feat_power_limit) ENTRY("power-thresh", POWER_THRESH_DESC, feat_power_thresh) ENTRY("power-meas", POWER_MEAS_DESC, feat_power_meas) ENTRY("err-recovery", ERR_RECOVERY_DESC, feat_err_recovery) ) ); #endif /* !FEAT_NVME || CMD_HEADER_MULTI_READ */ #ifndef FEAT_NVME_H #define FEAT_NVME_H #endif /* FEAT_NVME_H */