Skip to content

Commit db5b4d5

Browse files
committed
nvme: add to parse nvme top command options
This is to print nvme top command help message. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 69731f0 commit db5b4d5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

nvme.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10960,11 +10960,18 @@ static int get_pull_model_ddc_req_log(int argc, char **argv, struct command *acm
1096010960
static int top(int argc, char **argv, struct command *acmd,
1096110961
struct plugin *plugin)
1096210962
{
10963+
const char *desc = "Monitor the topology\n";
1096310964
struct timespec ts = {
1096410965
.tv_sec = 3,
1096510966
};
1096610967
int err;
1096710968

10969+
NVME_ARGS(opts);
10970+
10971+
err = argconfig_parse(argc, argv, desc, opts);
10972+
if (err)
10973+
return err;
10974+
1096810975
while (true) {
1096910976
err = system("clear");
1097010977
if (err)

0 commit comments

Comments
 (0)