};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
};
const struct argconfig_commandline_options command_line_options[] = {
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
- err = nvme_get_log(fd, 0xffffffff, 0xdd, sizeof(log), log);
+ err = nvme_get_log(fd, NVME_NSID_ALL, 0xdd, sizeof(log), log);
if (!err) {
if (!cfg.raw_binary)
printf("Intel Marketing Name Log:\n%s\n", log);
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
- err = nvme_get_log(fd, 0xffffffff, 0xc5, sizeof(stats), &stats);
+ err = nvme_get_log(fd, NVME_NSID_ALL, 0xc5, sizeof(stats), &stats);
if (!err) {
if (!cfg.raw_binary)
show_temp_stats(&stats);
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
- err = nvme_get_log(fd, 0xffffffff, cfg.write ? 0xc2 : 0xc1, sizeof(stats), &stats);
+ err = nvme_get_log(fd, NVME_NSID_ALL, cfg.write ? 0xc2 : 0xc1, sizeof(stats), &stats);
if (!err) {
if (!cfg.raw_binary)
show_lat_stats(&stats, cfg.write);
};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
};
const struct argconfig_commandline_options command_line_options[] = {
int nvme_fw_log(int fd, struct nvme_firmware_log_page *fw_log)
{
- return nvme_get_log(fd, 0xffffffff, NVME_LOG_FW_SLOT, sizeof(*fw_log), fw_log);
+ return nvme_get_log(fd, NVME_NSID_ALL, NVME_LOG_FW_SLOT, sizeof(*fw_log), fw_log);
}
int nvme_error_log(int fd, __u32 nsid, int entries,
};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
.output_format = "normal",
};
if (fd < 0)
return fd;
- err = nvme_get_log(fd, 0xffffffff, 5, 4096, &effects);
+ err = nvme_get_log(fd, NVME_NSID_ALL, 5, 4096, &effects);
if (!err)
show_effects_log(&effects);
else if (err > 0)
};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
.log_entries = 64,
.output_format = "normal",
};
};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
.log_id = 0,
.log_len = 0,
};
};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
.timeout = 600000,
.lbaf = 0xff,
.ses = 0,
if (S_ISBLK(nvme_stat.st_mode))
cfg.namespace_id = get_nsid(fd);
- if (cfg.namespace_id != 0xffffffff) {
+ if (cfg.namespace_id != NVME_NSID_ALL) {
err = nvme_identify_ns(fd, cfg.namespace_id, 0, &ns);
if (err) {
if (err < 0)
};
struct config cfg = {
- .namespace_id = 0xffffffff,
+ .namespace_id = NVME_NSID_ALL,
};
const struct argconfig_commandline_options command_line_options[] = {