Skip to content

Commit e2408e0

Browse files
authored
Merge pull request #209 from hreinecke/doc-proto
Document function prototypes
2 parents 5b397aa + 89cad74 commit e2408e0

6 files changed

Lines changed: 376 additions & 370 deletions

File tree

doc/libnvme.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5643,7 +5643,7 @@ The nvme command status if a response was received (see
56435643
``nvme_path_t p``
56445644
56455645
5646-
.. c:function:: nvme_ctrl_t nvme_path_get_subsystem (nvme_path_t p)
5646+
.. c:function:: nvme_ctrl_t nvme_path_get_ctrl (nvme_path_t p)
56475647
56485648
56495649
**Parameters**
@@ -5849,15 +5849,6 @@ The nvme command status if a response was received (see
58495849
.. c:function:: void nvme_refresh_topology (nvme_root_t r)
58505850
58515851
5852-
**Parameters**
5853-
5854-
``nvme_root_t r``
5855-
*undescribed*
5856-
5857-
5858-
.. c:function:: void nvme_reset_topology (nvme_root_t r)
5859-
5860-
58615852
**Parameters**
58625853
58635854
``nvme_root_t r``

doc/man/nvme_path_get_subsystem.2

Lines changed: 0 additions & 8 deletions
This file was deleted.

doc/man/nvme_reset_topology.2

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/libnvme.map

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,15 @@ LIBNVME_1_0 {
221221
nvme_nvm_identify_ctrl;
222222
nvme_open;
223223
nvme_path_get_ana_state;
224+
nvme_path_get_ctrl;
224225
nvme_path_get_name;
225226
nvme_path_get_ns;
226-
nvme_path_get_subsystem;
227227
nvme_path_get_sysfs_dir;
228228
nvme_paths_filter;
229229
nvme_read;
230230
nvme_read_config;
231231
nvme_refresh_topology;
232232
nvme_rescan_ctrl;
233-
nvme_reset_topology;
234233
nvme_resv_acquire;
235234
nvme_resv_register;
236235
nvme_resv_release;

src/nvme/tree.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,6 @@ void nvme_refresh_topology(nvme_root_t r)
237237
nvme_scan_topology(r, NULL);
238238
}
239239

240-
void nvme_reset_topology(nvme_root_t r)
241-
{
242-
struct nvme_host *h, *_h;
243-
244-
nvme_for_each_host_safe(r, h, _h)
245-
__nvme_free_host(h);
246-
nvme_scan_topology(r, NULL);
247-
}
248-
249240
void nvme_free_tree(nvme_root_t r)
250241
{
251242
struct nvme_host *h, *_h;
@@ -542,7 +533,7 @@ static int nvme_scan_subsystem(struct nvme_root *r, const char *name,
542533
return -1;
543534
}
544535

545-
nvme_ctrl_t nvme_path_get_subsystem(nvme_path_t p)
536+
nvme_ctrl_t nvme_path_get_ctrl(nvme_path_t p)
546537
{
547538
return p->c;
548539
}

0 commit comments

Comments
 (0)