]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: Set file descriptor in nvme_get_log_page()
authorDaniel Wagner <dwagner@suse.de>
Wed, 15 Feb 2023 11:16:03 +0000 (12:16 +0100)
committerDaniel Wagner <wagi@monom.org>
Thu, 16 Feb 2023 07:32:00 +0000 (08:32 +0100)
commitcda5eace1362cd713afc606226b661f461ca2abf
treedbec8880d563c1f162dec965e14f6272c6b296a2
parent971115841d06a3db24253808be576c787ca88973
ioctl: Set file descriptor in nvme_get_log_page()

We explicitly ask for a file descriptor in the API so use it. The caller
might not have set it in args.

For example, in nvme-cli when the libnvme wrappers are used to hide the
transport details from the nvme-cli core, the macros only pass the file
descriptor via the function arguments but don't set it in the arg
structs.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/ioctl.c