]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
document corner case for large nsids
authorKeith Busch <kbusch@kernel.org>
Wed, 10 Jun 2020 18:06:35 +0000 (11:06 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 10 Jun 2020 18:06:35 +0000 (11:06 -0700)
Signed-off-by: Keith Busch <kbusch@kernel.org>
src/nvme/ioctl.h

index 6c7b8c256e241ffa3a899089ab659cccffe70168..12edb604b49a3b8b68cd4a9c725886a960c1eb7c 100644 (file)
@@ -360,7 +360,10 @@ int nvme_ns_rescan(int fd);
  * @fd:                File descriptor of nvme namespace
  * @nsid:      User pointer to namespace id
  *
- * This should only be sent to namespace handles, not to controllers.
+ * This should only be sent to namespace handles, not to controllers. The
+ * kernel's interface returns the nsid as the return value. This is unfortunate
+ * for many architectures that are incapable of allowing distinguishing a
+ * namespace id > 0x80000000 from a negative error number.
  *
  * Return: 0 if @nsid was set succecssfully or -1 with errno set otherwise.
  */