Home
last modified time | relevance | path

Searched refs:MAX_PATH_LEN (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_d_path.c7 #define MAX_PATH_LEN 128 macro
13 char paths_stat[MAX_FILES][MAX_PATH_LEN] = {};
14 char paths_close[MAX_FILES][MAX_PATH_LEN] = {};
36 ret = bpf_d_path(path, paths_stat[cnt], MAX_PATH_LEN); in BPF_PROG()
58 paths_close[cnt], MAX_PATH_LEN); in BPF_PROG()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c8 #define MAX_PATH_LEN 128 macro
30 char paths[MAX_FILES][MAX_PATH_LEN];
35 char buf[MAX_PATH_LEN]; in set_pathname()
37 snprintf(buf, MAX_PATH_LEN, "/proc/%d/fd/%d", pid, fd); in set_pathname()
38 return readlink(buf, src.paths[src.cnt++], MAX_PATH_LEN); in set_pathname()
153 CHECK(strncmp(src.paths[i], bss->paths_stat[i], MAX_PATH_LEN), in test_d_path_basic()
157 CHECK(strncmp(src.paths[i], bss->paths_close[i], MAX_PATH_LEN), in test_d_path_basic()
/linux/tools/testing/selftests/prctl/
H A Dset-process-name.c15 #define MAX_PATH_LEN 50 macro
58 char path[MAX_PATH_LEN] = {}; in check_name()
63 j = snprintf(path, MAX_PATH_LEN, "/proc/self/task/%d/comm", pid); in check_name()
/linux/arch/powerpc/boot/
H A Dserial.c87 char path[MAX_PATH_LEN]; in serial_get_stdout_devp()
93 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 || in serial_get_stdout_devp()
94 getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) { in serial_get_stdout_devp()
H A Dops.h17 #define MAX_PATH_LEN 256 macro
174 char path[MAX_PATH_LEN]; in find_node_by_alias()
175 if (getprop(devp, alias, path, MAX_PATH_LEN) > 0) in find_node_by_alias()
/linux/tools/bpf/bpftool/
H A Dbtf_dumper.c847 const unsigned int MAX_PATH_LEN = 32; in shorten_path() local
851 if (len <= MAX_PATH_LEN) in shorten_path()
855 shortpath = strchr(path + len - MAX_PATH_LEN, '/'); in shorten_path()
/linux/fs/f2fs/
H A Dsuper.c4304 memcpy(FDEV(i).path, RDEV(i).path, MAX_PATH_LEN); in f2fs_scan_devices()