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

Function eal_set_runtime_dir

dpdk/lib/eal/common/eal_common_config.c:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30int
31eal_set_runtime_dir(const char *run_dir)
32{
33 if (strlcpy(runtime_dir, run_dir, PATH_MAX) >= PATH_MAX) {
34 RTE_LOG(ERR, EAL, "Runtime directory string too long\n");
35 return -1;
36 }
37
38 return 0;
39}
40
41/* Return a pointer to the configuration structure */
42struct rte_config *

Callers 1

eal_create_runtime_dirFunction · 0.85

Calls 1

strlcpyFunction · 0.50

Tested by

no test coverage detected