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

Function of_open_dir

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

Source from the content-addressed store, hash-verified

16static COMPAT_LIST_HEAD(linear);
17
18static int
19of_open_dir(const char *relative_path, struct dirent ***d)
20{
21 int ret;
22 char full_path[PATH_MAX];
23
24 snprintf(full_path, PATH_MAX, "%s/%s", base_dir, relative_path);
25 ret = scandir(full_path, d, 0, versionsort);
26 if (ret < 0)
27 DPAAX_LOG(ERR, "Failed to open directory %s",
28 full_path);
29 return ret;
30}
31
32static void
33of_close_dir(struct dirent **d, int num)

Callers 1

process_dirFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected