Skip to content

libnvme: rename API functions per function-index.md proposal#12

Closed
Copilot wants to merge 3 commits into
apifrom
copilot/rename-functions-in-libnvme-docs
Closed

libnvme: rename API functions per function-index.md proposal#12
Copilot wants to merge 3 commits into
apifrom
copilot/rename-functions-in-libnvme-docs

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 16, 2026

Implements the renaming proposals from libnvme/doc/function-index.md to make the API naming consistent (verb placement, object prefix ordering).

Renames applied

Old New
nvme_ctrl_config_match nvme_ctrl_match_config
nvme_host_get nvme_get_host
nvme_subsystem_get nvme_get_subsystem
nvme_hostid_from_file nvme_read_hostid
nvme_hostid_generate nvme_generate_hostid
nvme_hostnqn_from_file nvme_read_hostnqn
nvme_hostnqn_generate nvme_generate_hostnqn
nvme_hostnqn_generate_from_hostid nvme_generate_hostnqn_from_hostid
nvme_ctrl_reset nvme_reset_ctrl
nvme_ns_rescan nvme_rescan_ns
nvme_subsystem_reset nvme_reset_subsystem
nvme_ctrls_filter nvme_filter_ctrls
nvme_namespace_filter nvme_filter_namespace
nvme_paths_filter nvme_filter_paths
nvme_subsys_filter nvme_filter_subsys
nvme_nbft_free nvme_free_nbft
nvme_nbft_read nvme_read_nbft
nvme_uuid_find nvme_find_uuid
nvme_uuid_random nvme_random_uuid

nvme_ctrl_identifynvme_identify_ctrl is excluded: nvme_identify_ctrl already exists in cmds.h with a different signature (nvme_transport_handle* vs nvme_ctrl_t).

Scope

  • libnvme/src/nvme/ — headers, source, and libnvme.ld version script
  • libnvme/libnvme/nvme.i — SWIG bindings
  • libnvme/test/, libnvme/examples/ — tests and examples
  • nvme.c, plugins/ — all nvme-cli callers

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

igaw and others added 2 commits March 16, 2026 11:09
Add a table which documents the renaming proposal.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Co-authored-by: igaw <1050803+igaw@users.noreply.github.com>
Copilot AI changed the title [WIP] Update function names in libnvme documentation libnvme: rename API functions per function-index.md proposal Mar 16, 2026
Copilot AI requested a review from igaw March 16, 2026 13:56
Copilot finished work on behalf of igaw March 16, 2026 13:56
@igaw igaw force-pushed the api branch 5 times, most recently from 9a10fac to d1d2518 Compare March 17, 2026 11:21
@igaw igaw closed this Mar 20, 2026
@igaw igaw deleted the copilot/rename-functions-in-libnvme-docs branch March 20, 2026 17:56
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.

2 participants