Home
last modified time | relevance | path

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

123456

/Linux-v4.19/tools/power/acpi/tools/acpidump/
Dapfiles.c14 static int ap_is_existing_file(char *pathname);
28 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument
33 if (!stat(pathname, &stat_info)) { in ap_is_existing_file()
59 int ap_open_output_file(char *pathname) in ap_open_output_file() argument
65 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file()
71 file = fopen(pathname, "w"); in ap_open_output_file()
73 fprintf(stderr, "Could not open output file: %s\n", pathname); in ap_open_output_file()
80 gbl_output_filename = pathname; in ap_open_output_file()
173 struct acpi_table_header *ap_get_table_from_file(char *pathname, in ap_get_table_from_file() argument
183 file = fopen(pathname, "rb"); in ap_get_table_from_file()
[all …]
Dapdump.c363 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument
371 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
379 pathname); in ap_dump_table_from_file()
387 table->length, file_size, pathname); in ap_dump_table_from_file()
394 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
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-v4.19/drivers/acpi/acpica/
Dextrace.c132 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() argument
137 if (pathname) { in acpi_ex_trace_point()
141 begin ? "Begin" : "End", aml, pathname)); in acpi_ex_trace_point()
170 char *pathname = NULL; in acpi_ex_start_trace_method() local
176 pathname = acpi_ns_get_normalized_pathname(method_node, TRUE); in acpi_ex_start_trace_method()
179 enabled = acpi_ex_interpreter_trace_enabled(pathname); in acpi_ex_start_trace_method()
199 pathname); in acpi_ex_start_trace_method()
202 if (pathname) { in acpi_ex_start_trace_method()
203 ACPI_FREE(pathname); in acpi_ex_start_trace_method()
227 char *pathname = NULL; in acpi_ex_stop_trace_method() local
[all …]
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()
Dnsarguments.c92 acpi_ns_check_acpi_compliance(char *pathname, in acpi_ns_check_acpi_compliance() argument
117 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance()
128 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance()
152 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance()
160 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance()
185 acpi_ns_check_argument_count(char *pathname, in acpi_ns_check_argument_count() argument
204 ACPI_INFO_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_argument_count()
230 ACPI_WARN_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_argument_count()
237 ACPI_INFO_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_argument_count()
262 ACPI_WARN_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_argument_count()
[all …]
Ddbexec.c143 status = acpi_evaluate_object(NULL, info->pathname, in acpi_db_execute_method()
164 info->pathname)); in acpi_db_execute_method()
200 info->pathname[0] = 0; in acpi_db_execute_setup()
202 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup()
209 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup()
215 acpi_db_prep_namestring(info->pathname); in acpi_db_execute_setup()
218 acpi_os_printf("Evaluating %s\n", info->pathname); in acpi_db_execute_setup()
408 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, in acpi_db_execute()
434 allocations, acpi_gbl_db_method_info.pathname); in acpi_db_execute()
440 acpi_gbl_db_method_info.pathname, in acpi_db_execute()
[all …]
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()
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, u8 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()
Dnsutils.c648 const char *pathname, in acpi_ns_get_node_unlocked() argument
656 ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node_unlocked()
660 if (!pathname) { in acpi_ns_get_node_unlocked()
671 if (ACPI_IS_ROOT_PREFIX(pathname[0]) && (!pathname[1])) { in acpi_ns_get_node_unlocked()
678 status = acpi_ns_internalize_name(pathname, &internal_path); in acpi_ns_get_node_unlocked()
695 pathname, acpi_format_exception(status))); in acpi_ns_get_node_unlocked()
726 const char *pathname, in acpi_ns_get_node() argument
731 ACPI_FUNCTION_TRACE_PTR(ns_get_node, ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node()
738 status = acpi_ns_get_node_unlocked(prefix_node, pathname, in acpi_ns_get_node()
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()
Dutaddress.c166 char *pathname; in acpi_ut_check_address_range() local
199 pathname = in acpi_ut_check_address_range()
213 pathname)); in acpi_ut_check_address_range()
214 ACPI_FREE(pathname); in acpi_ut_check_address_range()
Ddbmethod.c362 char *pathname; in acpi_db_walk_for_execute() local
378 pathname = acpi_ns_get_external_pathname(node); in acpi_db_walk_for_execute()
379 if (!pathname) { in acpi_db_walk_for_execute()
387 ACPI_FREE(pathname); in acpi_db_walk_for_execute()
417 acpi_os_printf("%-32s returned %s\n", pathname, in acpi_db_walk_for_execute()
420 ACPI_FREE(pathname); in acpi_db_walk_for_execute()
/Linux-v4.19/security/loadpin/
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-v4.19/fs/
Dxattr.c457 static int path_setxattr(const char __user *pathname, in path_setxattr() argument
464 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
480 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
484 return path_setxattr(pathname, name, value, size, flags, LOOKUP_FOLLOW); in SYSCALL_DEFINE5()
487 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
491 return path_setxattr(pathname, name, value, size, flags, 0); in SYSCALL_DEFINE5()
555 static ssize_t path_getxattr(const char __user *pathname, in path_getxattr() argument
562 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
574 SYSCALL_DEFINE4(getxattr, const char __user *, pathname, in SYSCALL_DEFINE4() argument
577 return path_getxattr(pathname, name, value, size, LOOKUP_FOLLOW); in SYSCALL_DEFINE4()
[all …]
Dstatfs.c81 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument
87 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs()
176 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
179 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2()
185 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
191 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3()
286 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
289 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2()
338 int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __u… in kcompat_sys_statfs64() argument
346 error = user_statfs(pathname, &tmp); in kcompat_sys_statfs64()
[all …]
/Linux-v4.19/security/integrity/ima/
Dima_main.c87 const char **pathname, in ima_rdwr_violation_check() argument
113 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
116 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
119 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
178 const char *pathname = NULL; in process_measurement() local
215 &pathbuf, &pathname, filename); in process_measurement()
289 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement()
292 ima_store_measurement(iint, file, pathname, in process_measurement()
296 rc = ima_appraise_measurement(func, iint, file, pathname, in process_measurement()
301 ima_audit_measurement(iint, pathname); in process_measurement()
Dima_api.c359 char *pathname = NULL; in ima_d_path() local
363 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
364 if (IS_ERR(pathname)) { in ima_d_path()
367 pathname = NULL; in ima_d_path()
371 if (!pathname) { in ima_d_path()
373 pathname = namebuf; in ima_d_path()
376 return pathname; in ima_d_path()
/Linux-v4.19/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c630 char pathname[32]; in get_msr() local
633 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr()
634 fd = open(pathname, O_RDONLY); in get_msr()
636 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr()
640 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
651 char pathname[32]; in put_msr() local
655 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in put_msr()
656 fd = open(pathname, O_RDWR); in put_msr()
658 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in put_msr()
820 char pathname[64]; in update_cpufreq_scaling_freq() local
[all …]
/Linux-v4.19/scripts/gdb/linux/
Dproc.py171 pathname = ""
175 pathname = utils.dentry_name(mntpoint) + pathname
180 if (pathname == ""):
181 pathname = "/"
192 pathname,
/Linux-v4.19/tools/perf/util/
Dpath.c51 char *pathname = get_pathname(); in mkpath() local
54 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath()
58 return cleanup_path(pathname); in mkpath()
/Linux-v4.19/tools/testing/selftests/proc/
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()
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-v4.19/kernel/
Daudit_fsnotify.c83 struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int len) in audit_alloc_mark() argument
91 if (pathname[0] != '/' || pathname[len-1] == '/') in audit_alloc_mark()
94 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark()
108 audit_mark->path = pathname; in audit_alloc_mark()
/Linux-v4.19/arch/arm64/kernel/
Dsys32.c34 COMPAT_SYSCALL_DEFINE3(aarch32_statfs64, const char __user *, pathname, in COMPAT_SYSCALL_DEFINE3() argument
49 return kcompat_sys_statfs64(pathname, sz, buf); in COMPAT_SYSCALL_DEFINE3()
99 COMPAT_SYSCALL_DEFINE4(aarch32_truncate64, const char __user *, pathname, in COMPAT_SYSCALL_DEFINE4() argument
102 return ksys_truncate(pathname, arg_u64(length)); in COMPAT_SYSCALL_DEFINE4()

123456