Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 25 of 139) sorted by relevance

123456

/linux/tools/power/acpi/tools/acpidump/
H A Dapfiles.c14 static int ap_is_existing_file(char *pathname);
20 * PARAMETERS: pathname - Output filename
28 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument
34 if (!stat(pathname, &stat_info)) { in ap_is_existing_file()
56 * PARAMETERS: pathname - Output filename
65 int ap_open_output_file(char *pathname) in ap_open_output_file() argument
71 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file()
77 file = fopen(pathname, "w"); in ap_open_output_file()
79 fprintf(stderr, "Could not open output file: %s\n", pathname); in ap_open_output_file()
86 gbl_output_filename = pathname; in ap_open_output_file()
179 ap_get_table_from_file(char * pathname,u32 * out_file_size) ap_get_table_from_file() argument
[all...]
H A Dapdump.c358 * PARAMETERS: pathname - File containing the binary ACPI table
366 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument
374 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
382 pathname); in ap_dump_table_from_file()
390 table->length, file_size, pathname); in ap_dump_table_from_file()
397 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
H A Dacpidump.h63 int ap_dump_table_from_file(char *pathname);
80 int ap_open_output_file(char *pathname);
84 struct acpi_table_header *ap_get_table_from_file(char *pathname,
/linux/tools/testing/selftests/exec/
H A Dnon-regular.c15 void rm(struct __test_metadata *_metadata, const char *pathname, in rm() argument
21 rc = rmdir(pathname); in rm()
23 rc = unlink(pathname); in rm()
27 TH_LOG("Not ENOENT: %s", pathname); in rm()
31 TH_LOG("Failed to remove: %s", pathname); in rm()
37 char *pathname; in FIXTURE() local
64 ASSERT_EQ(symlink(paths[i], self->pathname), 0); in setup_link()
84 ASSERT_EQ(mkdir(self->pathname, 0755), 0); in setup_dir()
103 rc = mknod(self->pathname, 0755 | variant->mode, dev); in setup_node()
137 ASSERT_EQ(mkfifo(self->pathname, 0755), 0); in setup_fifo()
[all …]
/linux/tools/testing/selftests/rcutorture/bin/
H A Dkvm-remote-noreap.sh13 pathname="$1"
14 if test "$pathname" = ""
16 echo Usage: kvm-remote-noreap.sh pathname
19 if ! test -d "$pathname"
21 echo Usage: kvm-remote-noreap.sh pathname
26 while test -d "$pathname"
28 find "$pathname" -type f -exec touch -c {} \; > /dev/null 2>&1
/linux/drivers/acpi/acpica/
H A Dutxfmutex.c18 acpi_string pathname,
39 acpi_string pathname, in acpi_ut_get_mutex_object() argument
48 if (!ret_obj || (!handle && !pathname)) { in acpi_ut_get_mutex_object()
55 if (pathname != NULL) { in acpi_ut_get_mutex_object()
57 acpi_get_handle(handle, pathname, in acpi_ut_get_mutex_object()
100 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout) in acpi_acquire_mutex() argument
107 status = acpi_ut_get_mutex_object(handle, pathname, &mutex_obj); in acpi_acquire_mutex()
136 acpi_status acpi_release_mutex(acpi_handle handle, acpi_string pathname) in ACPI_EXPORT_SYMBOL()
143 status = acpi_ut_get_mutex_object(handle, pathname, &mutex_obj); in ACPI_EXPORT_SYMBOL()
H A Ddbexec.c144 status = acpi_evaluate_object(NULL, info->pathname, in acpi_db_execute_method()
165 info->pathname)); in acpi_db_execute_method()
201 info->pathname[0] = 0; in acpi_db_execute_setup()
203 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup()
210 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup()
216 acpi_db_prep_namestring(info->pathname); in acpi_db_execute_setup()
219 acpi_os_printf("Evaluating %s\n", info->pathname); in acpi_db_execute_setup()
428 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, in acpi_db_execute()
454 allocations, acpi_gbl_db_method_info.pathname); in acpi_db_execute()
460 acpi_gbl_db_method_info.pathname, in acpi_db_execute()
[all …]
H A Dutstring.c196 void ut_convert_backslashes(char *pathname) in ut_convert_backslashes() argument
199 if (!pathname) { in ut_convert_backslashes()
203 while (*pathname) { in ut_convert_backslashes()
204 if (*pathname == '\\') { in ut_convert_backslashes()
205 *pathname = '/'; in ut_convert_backslashes()
208 pathname++; in ut_convert_backslashes()
H A Duterror.c41 char *pathname, in acpi_ut_predefined_warning() argument
54 acpi_os_printf(ACPI_MSG_WARNING "%s: ", pathname); in acpi_ut_predefined_warning()
84 char *pathname, u16 node_flags, const char *format, ...) in acpi_ut_predefined_info() argument
96 acpi_os_printf(ACPI_MSG_INFO "%s: ", pathname); in acpi_ut_predefined_info()
126 char *pathname, in acpi_ut_predefined_bios_error() argument
139 acpi_os_printf(ACPI_MSG_BIOS_ERROR "%s: ", pathname); in acpi_ut_predefined_bios_error()
H A Dnsxfeval.c45 acpi_string pathname, in acpi_evaluate_object_typed() argument
70 if (pathname) { in acpi_evaluate_object_typed()
71 status = acpi_get_handle(handle, pathname, &target_handle); in acpi_evaluate_object_typed()
164 acpi_string pathname, in ACPI_EXPORT_SYMBOL()
198 if ((pathname) && (ACPI_IS_ROOT_PREFIX(pathname[0]))) { in ACPI_EXPORT_SYMBOL()
209 if (!pathname) { in ACPI_EXPORT_SYMBOL()
215 pathname)); in ACPI_EXPORT_SYMBOL()
222 info->relative_pathname = pathname; in ACPI_EXPORT_SYMBOL()
234 ACPI_WARN_PREDEFINED((AE_INFO, pathname, in ACPI_EXPORT_SYMBOL()
H A Ddbmethod.c364 char *pathname; in acpi_db_evaluate_object() local
372 pathname = acpi_ns_get_external_pathname(node); in acpi_db_evaluate_object()
373 if (!pathname) { in acpi_db_evaluate_object()
381 ACPI_FREE(pathname); in acpi_db_evaluate_object()
412 acpi_os_printf("%-32s returned %s\n", pathname, in acpi_db_evaluate_object()
417 pathname, return_obj.pointer, in acpi_db_evaluate_object()
424 ACPI_FREE(pathname); in acpi_db_evaluate_object()
/linux/drivers/block/rnbd/
H A Drnbd-clt-sysfs.c61 char *pathname; member
149 strscpy(opt->pathname, p, NAME_MAX); in rnbd_clt_parse_map_options()
270 return sysfs_emit(page, "%s\n", dev->pathname); in mapping_path_show()
521 char pathname[NAME_MAX], *s; in rnbd_clt_get_path_name() local
523 strscpy(pathname, dev->pathname, sizeof(pathname)); in rnbd_clt_get_path_name()
524 while ((s = strchr(pathname, '/'))) in rnbd_clt_get_path_name()
527 ret = snprintf(buf, len, "%s@%s", pathname, dev->sess->sessname); in rnbd_clt_get_path_name()
539 len = strlen(dev->pathname) + strlen(dev->sess->sessname) + 2; in rnbd_clt_add_dev_symlink()
577 char pathname[NAME_MAX]; in rnbd_clt_map_device_store() local
590 opt.pathname = pathname; in rnbd_clt_map_device_store()
[all …]
H A Drnbd-clt.c60 kfree(dev->pathname); in rnbd_clt_put_dev()
561 strscpy(msg.dev_name, dev->pathname, sizeof(msg.dev_name)); in send_msg_open()
1406 const char *pathname, in init_dev() argument
1433 pathname, sess->sessname, ret); in init_dev()
1437 dev->pathname = kstrdup(pathname, GFP_KERNEL); in init_dev()
1438 if (!dev->pathname) { in init_dev()
1467 static bool __exists_dev(const char *pathname, const char *sessname) in __exists_dev() argument
1479 if (strlen(dev->pathname) == strlen(pathname) && in __exists_dev()
1480 !strcmp(dev->pathname, pathname)) { in __exists_dev()
1493 static bool exists_devpath(const char *pathname, const char *sessname) in exists_devpath() argument
[all …]
/linux/security/loadpin/
H A Dloadpin.c30 char *cmdline, *pathname; in report_load() local
32 pathname = kstrdup_quotable_file(file, GFP_KERNEL); in report_load()
37 (pathname && pathname[0] != '<') ? "\"" : "", in report_load()
38 pathname, in report_load()
39 (pathname && pathname[0] != '<') ? "\"" : "", in report_load()
44 kfree(pathname); in report_load()
/linux/security/integrity/ima/
H A Dima_main.c107 char **pathbuf, const char **pathname, in mmap_violation_check() argument
119 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
121 integrity_audit_msg(AUDIT_INTEGRITY_DATA, inode, *pathname, in mmap_violation_check()
141 const char **pathname, in ima_rdwr_violation_check() argument
173 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
176 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
179 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
266 const char *pathname = NULL; in process_measurement() local
310 &pathbuf, &pathname, filename); in process_measurement()
396 &pathname, filename); in process_measurement()
[all …]
H A Dima_api.c437 * ima_d_path - return a pointer to the full pathname
439 * Attempt to return a pointer to the full pathname for use in the
449 char *pathname = NULL; in ima_d_path()
453 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
454 if (IS_ERR(pathname)) { in ima_d_path()
457 pathname = NULL; in ima_d_path()
461 if (!pathname) { in ima_d_path()
466 pathname = namebuf;
469 return pathname;
444 char *pathname = NULL; ima_d_path() local
/linux/scripts/ipe/polgen/
H A Dpolgen.c18 static int policy_to_buffer(const char *pathname, char **buffer, size_t *size) in policy_to_buffer() argument
26 fd = fopen(pathname, "r"); in policy_to_buffer()
62 static int write_boot_policy(const char *pathname, const char *buf, size_t size) in write_boot_policy() argument
67 fd = fopen(pathname, "w"); in write_boot_policy()
/linux/include/trace/events/
H A Dlandlock.h420 const char *pathname),
422 TP_ARGS(ruleset, flags, access_rights, path, pathname),
430 __string( pathname, pathname )
444 __assign_str(pathname);
451 __trace_print_untrusted_str(p, __get_str(pathname),
452 __get_dynamic_array_len(pathname) - 1))
756 const struct path *path, const char *pathname),
758 TP_ARGS(hierarchy, same_exec, logged, blockers, path, pathname),
768 __string( pathname, pathname )
785 __assign_str(pathname);
[all …]
/linux/scripts/gdb/linux/
H A Dproc.py180 pathname = ""
184 pathname = vfs.dentry_name(mntpoint) + pathname
189 if (pathname == ""):
190 pathname = "/"
200 pathname, fstype, rd, info_opts(FS_INFO, s_flags),
/linux/security/landlock/
H A Dtrace.c93 const char *pathname; in landlock_trace_denial() local
137 pathname = "<no_mem>"; in landlock_trace_denial()
141 pathname = dentry_path_raw( in landlock_trace_denial()
143 if (IS_ERR(pathname)) in landlock_trace_denial()
144 pathname = in landlock_trace_denial()
145 PTR_ERR(pathname) == in landlock_trace_denial()
150 pathname = resolve_path_for_trace(path, buf); in landlock_trace_denial()
156 pathname); in landlock_trace_denial()
/linux/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c805 char pathname[32]; in get_msr() local
808 sprintf(pathname, use_android_msr_path ? "/dev/msr%d" : "/dev/cpu/%d/msr", cpu); in get_msr()
809 fd = open(pathname, O_RDONLY); in get_msr()
811 …err(-1, "%s open failed, try chown or chmod +r %s, or run as root", pathname, use_android_msr_path… in get_msr()
816 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
828 char pathname[32]; in put_msr() local
832 sprintf(pathname, use_android_msr_path ? "/dev/msr%d" : "/dev/cpu/%d/msr", cpu); in put_msr()
833 fd = open(pathname, O_RDWR); in put_msr()
835 …err(-1, "%s open failed, try chown or chmod +r %s, or run as root", pathname, use_android_msr_path… in put_msr()
1158 char pathname[64]; in update_cpufreq_scaling_freq() local
[all …]
/linux/tools/testing/selftests/proc/
H A Dfd-001-lookup.c33 static void test_lookup_pass(const char *pathname) in test_lookup_pass() argument
39 rv = lstat(pathname, &st); in test_lookup_pass()
44 static void test_lookup_fail(const char *pathname) in test_lookup_fail() argument
49 rv = lstat(pathname, &st); in test_lookup_fail()
H A Dfd-003-kthread.c116 static inline int sys_statx(int dirfd, const char *pathname, int flags, in sys_statx() argument
119 return syscall(SYS_statx, dirfd, pathname, flags, mask, stx); in sys_statx()
122 static void test_lookup_fail(int fd, const char *pathname) in test_lookup_fail() argument
127 rv = sys_statx(fd, pathname, AT_SYMLINK_NOFOLLOW, 0, (void *)stx); in test_lookup_fail()
/linux/fs/smb/server/
H A Dmisc.c173 char *pathname, *ab_pathname, *nt_pathname; in convert_to_nt_pathname() local
178 pathname = kmalloc(PATH_MAX, KSMBD_DEFAULT_GFP); in convert_to_nt_pathname()
179 if (!pathname) in convert_to_nt_pathname()
182 ab_pathname = d_path(path, pathname, PATH_MAX); in convert_to_nt_pathname()
209 kfree(pathname); in convert_to_nt_pathname()
/linux/tools/perf/bench/
H A Dsyscall.c56 const char *pathname = "/bin/true"; in test_execve()
57 char *const argv[] = { (char *)pathname, NULL }; in test_execve() local
64 execve(pathname, argv, NULL); in test_execve()

123456