Home
last modified time | relevance | path

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

123456

/Linux-v5.4/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
34 if (!stat(pathname, &stat_info)) { in ap_is_existing_file()
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 struct acpi_table_header *ap_get_table_from_file(char *pathname, in ap_get_table_from_file() argument
189 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-v5.4/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, 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()
Dnsutils.c636 const char *pathname, in acpi_ns_get_node_unlocked() argument
644 ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node_unlocked()
648 if (!pathname) { in acpi_ns_get_node_unlocked()
659 if (ACPI_IS_ROOT_PREFIX(pathname[0]) && (!pathname[1])) { in acpi_ns_get_node_unlocked()
666 status = acpi_ns_internalize_name(pathname, &internal_path); in acpi_ns_get_node_unlocked()
683 pathname, acpi_format_exception(status))); in acpi_ns_get_node_unlocked()
714 const char *pathname, in acpi_ns_get_node() argument
719 ACPI_FUNCTION_TRACE_PTR(ns_get_node, ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node()
726 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.c366 char *pathname; in acpi_db_walk_for_execute() local
382 pathname = acpi_ns_get_external_pathname(node); in acpi_db_walk_for_execute()
383 if (!pathname) { in acpi_db_walk_for_execute()
391 ACPI_FREE(pathname); in acpi_db_walk_for_execute()
421 acpi_os_printf("%-32s returned %s\n", pathname, in acpi_db_walk_for_execute()
424 ACPI_FREE(pathname); in acpi_db_walk_for_execute()
/Linux-v5.4/security/loadpin/
Dloadpin.c22 char *cmdline, *pathname; in report_load() local
24 pathname = kstrdup_quotable_file(file, GFP_KERNEL); in report_load()
29 (pathname && pathname[0] != '<') ? "\"" : "", in report_load()
30 pathname, in report_load()
31 (pathname && pathname[0] != '<') ? "\"" : "", in report_load()
36 kfree(pathname); in report_load()
/Linux-v5.4/security/integrity/ima/
Dima_main.c77 char **pathbuf, const char **pathname, in mmap_violation_check() argument
88 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
90 integrity_audit_msg(AUDIT_INTEGRITY_DATA, inode, *pathname, in mmap_violation_check()
110 const char **pathname, in ima_rdwr_violation_check() argument
136 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
139 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
142 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
201 const char *pathname = NULL; in process_measurement() local
240 &pathbuf, &pathname, filename); in process_measurement()
298 &pathname, filename); in process_measurement()
[all …]
Dima_api.c386 char *pathname = NULL; in ima_d_path() local
390 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
391 if (IS_ERR(pathname)) { in ima_d_path()
394 pathname = NULL; in ima_d_path()
398 if (!pathname) { in ima_d_path()
400 pathname = namebuf; in ima_d_path()
403 return pathname; in ima_d_path()
/Linux-v5.4/fs/
Dxattr.c458 static int path_setxattr(const char __user *pathname, in path_setxattr() argument
465 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
481 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
485 return path_setxattr(pathname, name, value, size, flags, LOOKUP_FOLLOW); in SYSCALL_DEFINE5()
488 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
492 return path_setxattr(pathname, name, value, size, flags, 0); in SYSCALL_DEFINE5()
556 static ssize_t path_getxattr(const char __user *pathname, in path_getxattr() argument
563 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
575 SYSCALL_DEFINE4(getxattr, const char __user *, pathname, in SYSCALL_DEFINE4() argument
578 return path_getxattr(pathname, name, value, size, LOOKUP_FOLLOW); in SYSCALL_DEFINE4()
[all …]
Dstatfs.c95 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument
101 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs()
190 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
193 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2()
199 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
205 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3()
300 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
303 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2()
343 int kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __u… in kcompat_sys_statfs64() argument
351 error = user_statfs(pathname, &tmp); in kcompat_sys_statfs64()
[all …]
/Linux-v5.4/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c629 char pathname[32]; in get_msr() local
632 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr()
633 fd = open(pathname, O_RDONLY); in get_msr()
635 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr()
639 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
650 char pathname[32]; in put_msr() local
654 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in put_msr()
655 fd = open(pathname, O_RDWR); in put_msr()
657 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in put_msr()
819 char pathname[64]; in update_cpufreq_scaling_freq() local
[all …]
/Linux-v5.4/scripts/gdb/linux/
Dproc.py175 pathname = ""
179 pathname = utils.dentry_name(mntpoint) + pathname
184 if (pathname == ""):
185 pathname = "/"
196 pathname,
/Linux-v5.4/kernel/
Daudit_fsnotify.c74 struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int len) in audit_alloc_mark() argument
82 if (pathname[0] != '/' || pathname[len-1] == '/') in audit_alloc_mark()
85 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark()
99 audit_mark->path = pathname; in audit_alloc_mark()
/Linux-v5.4/tools/perf/util/
Dpath.c52 char *pathname = get_pathname(); in mkpath() local
55 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath()
59 return cleanup_path(pathname); in mkpath()
/Linux-v5.4/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-v5.4/lib/
Dstring_helpers.c632 char *temp, *pathname; in kstrdup_quotable_file() local
642 pathname = file_path(file, temp, PATH_MAX + 11); in kstrdup_quotable_file()
643 if (IS_ERR(pathname)) in kstrdup_quotable_file()
644 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file()
646 pathname = kstrdup_quotable(pathname, gfp); in kstrdup_quotable_file()
649 return pathname; in kstrdup_quotable_file()

123456