]> www.infradead.org Git - users/sagi/libnvme.git/commit
tree: restart controller lookup
authorHannes Reinecke <hare@suse.de>
Thu, 3 Feb 2022 08:46:33 +0000 (09:46 +0100)
committerHannes Reinecke <hare@suse.de>
Thu, 3 Feb 2022 08:52:05 +0000 (09:52 +0100)
commit2f59761436c6169fe04a10f41ffdc4bfebe8db3f
treed6e8762d4850a9f4224eff4436cc065e01b7364d
parent135f2769ff16504290dfcf7fe67c9b598301576e
tree: restart controller lookup

nvme_lookup_ctrl() might match more than one controller (eg for loop
devices), in which case the iterator will only ever find the first one.
So add a parameter 'p' to nvme_lookup_ctrl() to re-start the iteration
at a given point instead of just the first one.

Signed-off-by: Hannes Reinecke <hare@suse.de>
src/nvme/json.c
src/nvme/tree.c
src/nvme/tree.h