};
struct config cfg = {
- .egid = 0,
+ .egid = 0,
.output_format = "normal",
.raw_binary = false,
};
};
struct config cfg = {
- .egid = 0,
+ .egid = 0,
.output_format = "normal",
.raw_binary = false,
};
};
struct config cfg = {
- .egid = 0,
- .host_events = false,
+ .egid = 0,
+ .host_events = false,
.output_format = "normal",
.raw_binary = false,
};
}
}
- for (unsigned int i = 0; i < npids; i++) {
+ for (unsigned int i = 0; i < npids; i++)
buf[i] = cpu_to_le16(pids[i]);
- }
err = nvme_fdp_reclaim_unit_handle_update(dev_fd(dev), cfg.namespace_id, npids, buf);
if (err) {
struct config {
__u32 namespace_id;
- __u16 ph;
- char *event_types;
- bool enable;
+ __u16 ph;
+ char *event_types;
+ bool enable;
bool save;
};
struct config cfg = {
- .enable = false,
+ .enable = false,
.save = false,
};
}
}
- for (unsigned int i = 0; i < nev; i++) {
+ for (unsigned int i = 0; i < nev; i++)
buf[i] = (__u8)evts[i];
- }
struct nvme_set_features_args args = {
.args_size = sizeof(args),