MCPcopy Create free account
hub / github.com/F-Stack/f-stack / process_dir

Function process_dir

dpdk/drivers/common/dpaax/dpaa_of.c:141–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static int
142process_dir(const char *relative_path, struct dt_dir *dt)
143{
144 struct dirent **d;
145 int ret, num;
146
147 dt->node.is_file = 0;
148 INIT_LIST_HEAD(&dt->subdirs);
149 INIT_LIST_HEAD(&dt->files);
150 ret = of_open_dir(relative_path, &d);
151 if (ret < 0)
152 return ret;
153 num = ret;
154 ret = iterate_dir(d, num, dt);
155 of_close_dir(d, num);
156 return (ret < 0) ? ret : 0;
157}
158
159static void
160linear_dir(struct dt_dir *d)

Callers 2

iterate_dirFunction · 0.85
of_init_pathFunction · 0.85

Calls 4

INIT_LIST_HEADFunction · 0.85
of_open_dirFunction · 0.85
iterate_dirFunction · 0.85
of_close_dirFunction · 0.85

Tested by

no test coverage detected