Skip to content

Cleanup and splitting of headers#3116

Open
igaw wants to merge 8 commits intolinux-nvme:masterfrom
igaw:header-mania
Open

Cleanup and splitting of headers#3116
igaw wants to merge 8 commits intolinux-nvme:masterfrom
igaw:header-mania

Conversation

@igaw
Copy link
Collaborator

@igaw igaw commented Feb 27, 2026

Besides splitting the ioctl API and the nvme API definitions it will make any porting attempt of the library simpler.

igaw added 2 commits February 27, 2026 10:42
The libnvme.h header is not a local header file, thus use the standard
lookup <> for external headers.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Use the set feature defines instead of the identify.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw changed the title Header mania Cleanup and splitting of headers Feb 27, 2026
@igaw igaw force-pushed the header-mania branch 2 times, most recently from 375efdf to d239f84 Compare February 27, 2026 13:31
igaw added 6 commits February 27, 2026 15:42
Unify the header includes. Use the libnvme.h or/and libnvme-mi.h
everywhere instead indiviual headers. This makes the refactoring of the
headers simpler (splitting them into smaller ones).

Signed-off-by: Daniel Wagner <wagi@kernel.org>
clang reports these are unused, thus remove them from the include list.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Use nvme_ns_rescan which wraps the IOCTL. This in preparation to make the
low level code private in libnvme.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Don't expose these low level defines anymore. The library should provide
all necessary functions/helpers.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
These data structs are libnvme APIs and just match the Linux APIs.
libnvme should not expose directly the Linux data structs.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Split the ioctl APIs from the commands API. While at it, also remove a
few of the unnecessary header dependencies. The aim here is to make
the ioctl header as small as possible. This will make any porting
attempts simpler.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw marked this pull request as ready for review February 27, 2026 14:43
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.

1 participant