Searched refs:path (Results 1 – 8 of 8) sorted by relevance
/samples/pidfd/ |
D | pidfd-metadata.c | 55 char path[100]; in pidfd_metadata_fd() local 57 snprintf(path, sizeof(path), "/proc/%d", pid); in pidfd_metadata_fd() 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd() 60 warn("Failed to open %s\n", path); in pidfd_metadata_fd()
|
/samples/bpf/ |
D | bpf_load.h | 53 int load_bpf_file(char *path); 54 int load_bpf_file_fixup_map(const char *path, fixup_map_cb fixup_map);
|
D | bpf_load.c | 508 static int do_load_bpf_file(const char *path, fixup_map_cb fixup_map) in do_load_bpf_file() argument 526 fd = open(path, O_RDONLY, 0); in do_load_bpf_file() 659 int load_bpf_file(char *path) in load_bpf_file() argument 661 return do_load_bpf_file(path, NULL); in load_bpf_file() 664 int load_bpf_file_fixup_map(const char *path, fixup_map_cb fixup_map) in load_bpf_file_fixup_map() argument 666 return do_load_bpf_file(path, fixup_map); in load_bpf_file_fixup_map()
|
D | Makefile | 231 $(warning WARNING: Detected possible issues with include path.)
|
/samples/uhid/ |
D | uhid-example.c | 390 const char *path = "/dev/uhid"; in main() local 408 fprintf(stderr, "Usage: %s [%s]\n", argv[0], path); in main() 411 path = argv[1]; in main() 415 fprintf(stderr, "Open uhid-cdev %s\n", path); in main() 416 fd = open(path, O_RDWR | O_CLOEXEC); in main() 418 fprintf(stderr, "Cannot open uhid-cdev %s: %m\n", path); in main()
|
/samples/seccomp/ |
D | user-trap.c | 107 char path[PATH_MAX], source[PATH_MAX], target[PATH_MAX]; in handle_req() local 127 snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); in handle_req() 128 mem = open(path, O_RDONLY); in handle_req()
|
/samples/auxdisplay/ |
D | cfag12864b-example.c | 51 static int cfag12864b_init(char *path) in cfag12864b_init() argument 53 cfag12864b_fd = open(path, O_RDWR); in cfag12864b_init()
|
/samples/qmi/ |
D | qmi_sample_client.c | 457 char path[20]; in qmi_sample_probe() local 478 snprintf(path, sizeof(path), "%d:%d", sq->sq_node, sq->sq_port); in qmi_sample_probe() 480 sample->de_dir = debugfs_create_dir(path, qmi_debug_dir); in qmi_sample_probe()
|