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

Function of_open_file

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

Source from the content-addressed store, hash-verified

38}
39
40static int
41of_open_file(const char *relative_path)
42{
43 int ret;
44 char full_path[PATH_MAX];
45
46 snprintf(full_path, PATH_MAX, "%s/%s", base_dir, relative_path);
47 ret = open(full_path, O_RDONLY);
48 if (ret < 0)
49 DPAAX_LOG(ERR, "Failed to open directory %s",
50 full_path);
51 return ret;
52}
53
54static void
55process_file(struct dirent *dent, struct dt_dir *parent)

Callers 1

process_fileFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected