|
19 | 19 | */ |
20 | 20 |
|
21 | 21 | /** |
22 | | - * nvme_namespace_filter() - |
23 | | - * @d: |
| 22 | + * nvme_namespace_filter() - Filter for namespaces |
| 23 | + * @d: dirent to check |
24 | 24 | * |
25 | | - * Return: |
| 25 | + * Return: 1 if @d matches, 0 otherwise |
26 | 26 | */ |
27 | 27 | int nvme_namespace_filter(const struct dirent *d); |
28 | 28 |
|
29 | 29 | /** |
30 | | - * nvme_paths_filter() - |
31 | | - * @d: |
| 30 | + * nvme_paths_filter() - Filter for paths |
| 31 | + * @d: dirent to check |
32 | 32 | * |
33 | | - * Return: |
| 33 | + * Return: 1 if @d matches, 0 otherwise |
34 | 34 | */ |
35 | 35 | int nvme_paths_filter(const struct dirent *d); |
36 | 36 |
|
37 | 37 | /** |
38 | | - * nvme_ctrls_filter() - |
39 | | - * @d: |
| 38 | + * nvme_ctrls_filter() - Filter for controllers |
| 39 | + * @d: dirent to check |
40 | 40 | * |
41 | | - * Return: |
| 41 | + * Return: 1 if @d matches, 0 otherwise |
42 | 42 | */ |
43 | 43 | int nvme_ctrls_filter(const struct dirent *d); |
44 | 44 |
|
45 | 45 | /** |
46 | | - * nvme_subsys_filter() - |
47 | | - * @d: |
| 46 | + * nvme_subsys_filter() - Filter for subsystems |
| 47 | + * @d: dirent to check |
48 | 48 | * |
49 | | - * Return: |
| 49 | + * Return: 1 if @d matches, 0 otherwise |
50 | 50 | */ |
51 | 51 | int nvme_subsys_filter(const struct dirent *d); |
52 | 52 |
|
53 | 53 | /** |
54 | | - * nvme_scan_subsystems() - |
55 | | - * @subsys: |
| 54 | + * nvme_scan_subsystems() - Scan for subsystems |
| 55 | + * @subsys: Pointer to array of dirents |
56 | 56 | * |
57 | | - * Return: |
| 57 | + * Return: number of entries in @subsys |
58 | 58 | */ |
59 | 59 | int nvme_scan_subsystems(struct dirent ***subsys); |
60 | 60 |
|
61 | 61 | /** |
62 | | - * nvme_scan_subsystem_namespaces() - |
63 | | - * @s: |
64 | | - * @namespaces: |
| 62 | + * nvme_scan_subsystem_namespaces() - Scan for namespaces in a subsystem |
| 63 | + * @s: Subsystem to scan |
| 64 | + * @n: Pointer to array of dirents |
65 | 65 | * |
66 | | - * Return: |
| 66 | + * Return: number of entries in @ns |
67 | 67 | */ |
68 | | -int nvme_scan_subsystem_namespaces(nvme_subsystem_t s, struct dirent ***namespaces); |
| 68 | +int nvme_scan_subsystem_namespaces(nvme_subsystem_t s, struct dirent ***ns); |
69 | 69 |
|
70 | 70 | /** |
71 | | - * nvme_scan_ctrls() - |
72 | | - * @ctrls: |
| 71 | + * nvme_scan_ctrls() - Scan for controllers |
| 72 | + * @ctrls: Pointer to array of dirents |
73 | 73 | * |
74 | | - * Return: |
| 74 | + * Return: number of entries in @ctrls |
75 | 75 | */ |
76 | 76 | int nvme_scan_ctrls(struct dirent ***ctrls); |
77 | 77 |
|
78 | 78 | /** |
79 | | - * nvme_scan_ctrl_namespace_paths() - |
80 | | - * @c: |
81 | | - * @namespaces: |
| 79 | + * nvme_scan_ctrl_namespace_paths() - Scan for namespace paths in a controller |
| 80 | + * @c: Controller to scan |
| 81 | + * @paths: Pointer to array of dirents |
82 | 82 | * |
83 | | - * Return: |
| 83 | + * Return: number of entries in @paths |
84 | 84 | */ |
85 | | -int nvme_scan_ctrl_namespace_paths(nvme_ctrl_t c, struct dirent ***namespaces); |
| 85 | +int nvme_scan_ctrl_namespace_paths(nvme_ctrl_t c, struct dirent ***paths); |
86 | 86 |
|
87 | 87 | /** |
88 | | - * nvme_scan_ctrl_namespaces() - |
89 | | - * @c: |
90 | | - * @namespaces: |
| 88 | + * nvme_scan_ctrl_namespaces() - Scan for namespaces in a controller |
| 89 | + * @c: Controller to scan |
| 90 | + * @ns: Pointer to array of dirents |
91 | 91 | * |
92 | | - * Return: |
| 92 | + * Return: number of entries in @ns |
93 | 93 | */ |
94 | | -int nvme_scan_ctrl_namespaces(nvme_ctrl_t c, struct dirent ***namespaces); |
| 94 | +int nvme_scan_ctrl_namespaces(nvme_ctrl_t c, struct dirent ***ns); |
95 | 95 |
|
96 | 96 | #endif /* _LIBNVME_FILTERS_H */ |
0 commit comments