1414
1515#include "private.h"
1616
17- int nvme_namespace_filter (const struct dirent * d )
17+ int nvme_filter_namespace (const struct dirent * d )
1818{
1919 int i , n ;
2020
@@ -28,7 +28,7 @@ int nvme_namespace_filter(const struct dirent *d)
2828 return 0 ;
2929}
3030
31- int nvme_paths_filter (const struct dirent * d )
31+ int nvme_filter_paths (const struct dirent * d )
3232{
3333 int i , c , n ;
3434
@@ -42,7 +42,7 @@ int nvme_paths_filter(const struct dirent *d)
4242 return 0 ;
4343}
4444
45- int nvme_ctrls_filter (const struct dirent * d )
45+ int nvme_filter_ctrls (const struct dirent * d )
4646{
4747 int i , c , n ;
4848
@@ -61,7 +61,7 @@ int nvme_ctrls_filter(const struct dirent *d)
6161 return 0 ;
6262}
6363
64- int nvme_subsys_filter (const struct dirent * d )
64+ int nvme_filter_subsys (const struct dirent * d )
6565{
6666 int i ;
6767
@@ -80,7 +80,7 @@ int nvme_scan_subsystems(struct dirent ***subsys)
8080 const char * dir = nvme_subsys_sysfs_dir ();
8181 int ret ;
8282
83- ret = scandir (dir , subsys , nvme_subsys_filter , alphasort );
83+ ret = scandir (dir , subsys , nvme_filter_subsys , alphasort );
8484 if (ret < 0 )
8585 return - errno ;
8686
@@ -92,7 +92,7 @@ int nvme_scan_subsystem_namespaces(nvme_subsystem_t s, struct dirent ***ns)
9292 int ret ;
9393
9494 ret = scandir (nvme_subsystem_get_sysfs_dir (s ), ns ,
95- nvme_namespace_filter , alphasort );
95+ nvme_filter_namespace , alphasort );
9696 if (ret < 0 )
9797 return - errno ;
9898
@@ -104,7 +104,7 @@ int nvme_scan_ctrls(struct dirent ***ctrls)
104104 const char * dir = nvme_ctrl_sysfs_dir ();
105105 int ret ;
106106
107- ret = scandir (dir , ctrls , nvme_ctrls_filter , alphasort );
107+ ret = scandir (dir , ctrls , nvme_filter_ctrls , alphasort );
108108 if (ret < 0 )
109109 return - errno ;
110110
@@ -116,7 +116,7 @@ int nvme_scan_ctrl_namespace_paths(nvme_ctrl_t c, struct dirent ***paths)
116116 int ret ;
117117
118118 ret = scandir (nvme_ctrl_get_sysfs_dir (c ), paths ,
119- nvme_paths_filter , alphasort );
119+ nvme_filter_paths , alphasort );
120120 if (ret < 0 )
121121 return - errno ;
122122
@@ -128,7 +128,7 @@ int nvme_scan_ctrl_namespaces(nvme_ctrl_t c, struct dirent ***ns)
128128 int ret ;
129129
130130 ret = scandir (nvme_ctrl_get_sysfs_dir (c ), ns ,
131- nvme_namespace_filter , alphasort );
131+ nvme_filter_namespace , alphasort );
132132 if (ret < 0 )
133133 return - errno ;
134134
@@ -140,7 +140,7 @@ int nvme_scan_ns_head_paths(nvme_ns_head_t head, struct dirent ***paths)
140140 int ret ;
141141
142142 ret = scandir (nvme_ns_head_get_sysfs_dir (head ), paths ,
143- nvme_paths_filter , alphasort );
143+ nvme_filter_paths , alphasort );
144144 if (ret < 0 )
145145 return - errno ;
146146
0 commit comments