]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: pass data for Get/Set Features commands
authorCaleb Sander <csander@purestorage.com>
Fri, 8 Sep 2023 18:10:08 +0000 (12:10 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 20 Sep 2023 08:33:57 +0000 (10:33 +0200)
commit7fcee0a3da95b3ef8147987823beeb289e03db23
tree6b8a0994e1dcc58ebd3f2acf3823bb270e3aba35
parent87cf46038f335dad7e3fca37c1f87f5b4813b823
ioctl: pass data for Get/Set Features commands

Several nvme_{g,s}et_features_*() functions take a data buffer
but don't provide it to the Get/Set Features commands.
Fix them to pass the data buffer to nvme_{g,s}et_features().

Getting the Host Memory Buffer feature also returns
a struct nvme_host_mem_buf_attrs data structure,
so make a nvme_get_features_host_mem_buf2() function
that takes in a data buffer to receive it.

Signed-off-by: Caleb Sander <csander@purestorage.com>
src/libnvme.map
src/nvme/ioctl.c
src/nvme/ioctl.h