Skip to content

Conversation

@igaw
Copy link

@igaw igaw commented Oct 8, 2025

Working on the feedback/review from the ALPSS conference. Let's keep libnvme2 around for reference purpose and start a new branch. Since the aim is to integrate libnvme into nvme-cli it will end up being v3 anyway :)

igaw and others added 27 commits October 31, 2025 16:26
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

We will use one passthru type (the 64 version) eventually until then
just ignore these warnings.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Replace the struct args approach by providing init function for
initializing the passthru commands. This reduces the dependency between
callside and library.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
[ikegmi.t: - added switch case break statement missed]
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
There is no user left of this type in ioctl.c. Remove it.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
There is no need for the api-types.h header anymore. Furthermore, the
struct nvme_transport_handle and struct nvme_global_ctx type is used
throughout the library and is now part of the main API. We should ensure
any user of <nvme/libnvme.h> gets this type.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Refactore so we maintain nvme_get_log_partial easier.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since the following warnings output.

$ ./scripts/kernel-doc-check test/zns.c
test/zns.c:3: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
test/zns.c:10: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
examples/mi-mctp.c:3: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Since checked by kernel-doc-check then the warning message output.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
To fix the warning message below.
  test/mi.c:3: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
As we have renamed nvme_root to nvme_global_ctx, the Python bindings
example needs to be adjusted to reflect the refactoring.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
The error handling has changed from returning -1 and errno set to just
returing the error code. Negative values are internal errors, e.g.
-ENOMEM. Positive values are status code from the transport.

Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com>
Since the almost nvme-cli caller functions expected the base name.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
This adds the ability to automatically generate accessor functions
(setter/getter functions) by parsing structs definitions in header
files. Two files are generated: [accessors.c, accessors.h].

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
Before this fix, #includes and forward declarations were inserted
in the generated outputs on a first-come-first-serve basis. In
other words, #include statements and forward struct declarations
would get scattered thoughout the output instead of appearing
at the top of the files as they should.

This patch ensures that all #includes and forward declarations
appear at the top of the file where it is customary to find them.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
@igaw igaw closed this Nov 26, 2025
@igaw igaw deleted the libnvme3 branch December 17, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants