Home
last modified time | relevance | path

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

/linux-4.4.14/tools/power/acpi/tools/acpidump/
Dapfiles.c49 static int ap_is_existing_file(char *pathname);
51 static int ap_is_existing_file(char *pathname) in ap_is_existing_file() argument
56 if (!stat(pathname, &stat_info)) { in ap_is_existing_file()
81 int ap_open_output_file(char *pathname) in ap_open_output_file() argument
87 if (ap_is_existing_file(pathname) != 0) { in ap_open_output_file()
93 file = acpi_os_open_file(pathname, ACPI_FILE_WRITING); in ap_open_output_file()
95 acpi_log_error("Could not open output file: %s\n", pathname); in ap_open_output_file()
102 gbl_output_filename = pathname; in ap_open_output_file()
195 struct acpi_table_header *ap_get_table_from_file(char *pathname, in ap_get_table_from_file() argument
206 acpi_os_open_file(pathname, ACPI_FILE_READING | ACPI_FILE_BINARY); in ap_get_table_from_file()
[all …]
Dacpidump.h107 int ap_dump_table_from_file(char *pathname);
124 int ap_open_output_file(char *pathname);
128 struct acpi_table_header *ap_get_table_from_file(char *pathname,
Dapdump.c396 int ap_dump_table_from_file(char *pathname) in ap_dump_table_from_file() argument
404 table = ap_get_table_from_file(pathname, &file_size); in ap_dump_table_from_file()
414 table->length, file_size, pathname); in ap_dump_table_from_file()
421 pathname, table->signature, file_size, file_size); in ap_dump_table_from_file()
/linux-4.4.14/drivers/acpi/acpica/
Dutxfmutex.c54 acpi_string pathname,
75 acpi_string pathname, in acpi_ut_get_mutex_object() argument
84 if (!ret_obj || (!handle && !pathname)) { in acpi_ut_get_mutex_object()
91 if (pathname != NULL) { in acpi_ut_get_mutex_object()
92 status = acpi_get_handle(handle, pathname, in acpi_ut_get_mutex_object()
136 acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout) in acpi_acquire_mutex() argument
143 status = acpi_ut_get_mutex_object(handle, pathname, &mutex_obj); in acpi_acquire_mutex()
171 acpi_status acpi_release_mutex(acpi_handle handle, acpi_string pathname) in acpi_release_mutex() argument
178 status = acpi_ut_get_mutex_object(handle, pathname, &mutex_obj); in acpi_release_mutex()
Dnsarguments.c117 acpi_ns_check_acpi_compliance(char *pathname, in acpi_ns_check_acpi_compliance() argument
142 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance()
153 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_acpi_compliance()
177 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance()
185 ACPI_BIOS_ERROR_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_acpi_compliance()
210 acpi_ns_check_argument_count(char *pathname, in acpi_ns_check_argument_count() argument
225 ACPI_INFO_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_argument_count()
251 ACPI_WARN_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_argument_count()
258 ACPI_INFO_PREDEFINED((AE_INFO, pathname, in acpi_ns_check_argument_count()
283 ACPI_WARN_PREDEFINED((AE_INFO, pathname, ACPI_WARN_ALWAYS, in acpi_ns_check_argument_count()
[all …]
Dexdebug.c426 u8 begin, u8 *aml, char *pathname) in acpi_ex_trace_point() argument
431 if (pathname) { in acpi_ex_trace_point()
435 begin ? "Begin" : "End", aml, pathname)); in acpi_ex_trace_point()
465 char *pathname = NULL; in acpi_ex_start_trace_method() local
471 pathname = acpi_ns_get_normalized_pathname(method_node, TRUE); in acpi_ex_start_trace_method()
479 enabled = acpi_ex_interpreter_trace_enabled(pathname); in acpi_ex_start_trace_method()
500 pathname); in acpi_ex_start_trace_method()
502 if (pathname) { in acpi_ex_start_trace_method()
503 ACPI_FREE(pathname); in acpi_ex_start_trace_method()
528 char *pathname = NULL; in acpi_ex_stop_trace_method() local
[all …]
Ddbexec.c177 status = acpi_evaluate_object(NULL, info->pathname, in acpi_db_execute_method()
186 info->pathname)); in acpi_db_execute_method()
222 info->pathname[0] = 0; in acpi_db_execute_setup()
224 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup()
231 if (acpi_ut_safe_strcat(info->pathname, sizeof(info->pathname), in acpi_db_execute_setup()
237 acpi_db_prep_namestring(info->pathname); in acpi_db_execute_setup()
240 acpi_os_printf("Evaluating %s\n", info->pathname); in acpi_db_execute_setup()
422 status = acpi_get_handle(NULL, acpi_gbl_db_method_info.pathname, in acpi_db_execute()
450 allocations, acpi_gbl_db_method_info.pathname); in acpi_db_execute()
456 acpi_gbl_db_method_info.pathname, in acpi_db_execute()
[all …]
Dutstring.c290 void ut_convert_backslashes(char *pathname) in ut_convert_backslashes() argument
293 if (!pathname) { in ut_convert_backslashes()
297 while (*pathname) { in ut_convert_backslashes()
298 if (*pathname == '\\') { in ut_convert_backslashes()
299 *pathname = '/'; in ut_convert_backslashes()
302 pathname++; in ut_convert_backslashes()
Duterror.c77 char *pathname, in acpi_ut_predefined_warning() argument
90 acpi_os_printf(ACPI_MSG_WARNING "%s: ", pathname); in acpi_ut_predefined_warning()
120 char *pathname, u8 node_flags, const char *format, ...) in acpi_ut_predefined_info() argument
132 acpi_os_printf(ACPI_MSG_INFO "%s: ", pathname); in acpi_ut_predefined_info()
162 char *pathname, in acpi_ut_predefined_bios_error() argument
175 acpi_os_printf(ACPI_MSG_BIOS_ERROR "%s: ", pathname); in acpi_ut_predefined_bios_error()
Dutaddress.c208 char *pathname; in acpi_ut_check_address_range() local
241 pathname = in acpi_ut_check_address_range()
254 pathname)); in acpi_ut_check_address_range()
255 ACPI_FREE(pathname); in acpi_ut_check_address_range()
Dnsxfeval.c81 acpi_string pathname, in acpi_evaluate_object_typed() argument
103 status = acpi_evaluate_object(handle, pathname, in acpi_evaluate_object_typed()
176 acpi_string pathname, in ACPI_EXPORT_SYMBOL()
210 if ((pathname) && (ACPI_IS_ROOT_PREFIX(pathname[0]))) { in ACPI_EXPORT_SYMBOL()
221 if (!pathname) { in ACPI_EXPORT_SYMBOL()
227 pathname)); in ACPI_EXPORT_SYMBOL()
234 info->relative_pathname = pathname; in ACPI_EXPORT_SYMBOL()
246 ACPI_WARN_PREDEFINED((AE_INFO, pathname, in ACPI_EXPORT_SYMBOL()
Dnsutils.c686 const char *pathname, in acpi_ns_get_node() argument
693 ACPI_FUNCTION_TRACE_PTR(ns_get_node, ACPI_CAST_PTR(char, pathname)); in acpi_ns_get_node()
697 if (!pathname) { in acpi_ns_get_node()
707 if (ACPI_IS_ROOT_PREFIX(pathname[0]) && (!pathname[1])) { in acpi_ns_get_node()
714 status = acpi_ns_internalize_name(pathname, &internal_path); in acpi_ns_get_node()
738 pathname, acpi_format_exception(status))); in acpi_ns_get_node()
Dnsdump.c84 void acpi_ns_print_pathname(u32 num_segments, char *pathname) in acpi_ns_print_pathname() argument
102 isprint((int)pathname[i]) ? in acpi_ns_print_pathname()
103 acpi_os_printf("%c", pathname[i]) : in acpi_ns_print_pathname()
107 pathname += ACPI_NAME_SIZE; in acpi_ns_print_pathname()
704 char *pathname; in acpi_ns_dump_one_object_path() local
720 pathname = acpi_ns_get_external_pathname(node); in acpi_ns_dump_one_object_path()
731 acpi_os_printf("%s\n", &pathname[1]); in acpi_ns_dump_one_object_path()
732 ACPI_FREE(pathname); in acpi_ns_dump_one_object_path()
Dnsxfname.c81 acpi_string pathname, acpi_handle * ret_handle) in acpi_get_handle() argument
91 if (!ret_handle || !pathname) { in acpi_get_handle()
111 if (ACPI_IS_ROOT_PREFIX(pathname[0])) { in acpi_get_handle()
117 if (!strcmp(pathname, ACPI_NS_ROOT_PATH)) { in acpi_get_handle()
132 acpi_ns_get_node(prefix_node, pathname, ACPI_NS_NO_UPSEARCH, &node); in acpi_get_handle()
Ddbnames.c433 char *pathname; in acpi_db_walk_for_predefined_names() local
441 pathname = acpi_ns_get_external_pathname(node); in acpi_db_walk_for_predefined_names()
442 if (!pathname) { in acpi_db_walk_for_predefined_names()
455 acpi_os_printf("%-32s Arguments %X, Return Types: %s", pathname, in acpi_db_walk_for_predefined_names()
470 acpi_ns_check_acpi_compliance(pathname, node, predefined); in acpi_db_walk_for_predefined_names()
472 ACPI_FREE(pathname); in acpi_db_walk_for_predefined_names()
Dnsaccess.c281 char *pathname, in acpi_ns_lookup() argument
289 char *path = pathname; in acpi_ns_lookup()
355 if (!pathname) { in acpi_ns_lookup()
431 pathname)); in acpi_ns_lookup()
Ddbtest.c932 char *pathname; in acpi_db_evaluate_one_predefined_name() local
956 pathname = acpi_ns_get_external_pathname(node); in acpi_db_evaluate_one_predefined_name()
957 if (!pathname) { in acpi_db_evaluate_one_predefined_name()
965 ACPI_FREE(pathname); in acpi_db_evaluate_one_predefined_name()
1019 pathname, arg_type); in acpi_db_evaluate_one_predefined_name()
1041 pathname, acpi_format_exception(status)); in acpi_db_evaluate_one_predefined_name()
1043 ACPI_FREE(pathname); in acpi_db_evaluate_one_predefined_name()
Dutdebug.c581 acpi_trace_point(acpi_trace_event_type type, u8 begin, u8 *aml, char *pathname) in acpi_trace_point() argument
586 acpi_ex_trace_point(type, begin, aml, pathname); in acpi_trace_point()
589 acpi_os_trace_point(type, begin, aml, pathname); in acpi_trace_point()
Dacnamesp.h203 void acpi_ns_print_pathname(u32 num_segments, char *pathname);
232 acpi_ns_check_argument_count(char *pathname,
238 acpi_ns_check_acpi_compliance(char *pathname,
Ddbdisply.c1075 char *pathname; in acpi_db_display_non_root_handlers() local
1082 pathname = acpi_ns_get_external_pathname(node); in acpi_db_display_non_root_handlers()
1083 if (!pathname) { in acpi_db_display_non_root_handlers()
1101 acpi_os_printf(" Device Name: %s (%p)\n", pathname, node); in acpi_db_display_non_root_handlers()
1106 ACPI_FREE(pathname); in acpi_db_display_non_root_handlers()
Dacutils.h582 void ut_convert_backslashes(char *pathname);
672 char *pathname,
678 char *pathname, u8 node_flags, const char *format, ...);
683 char *pathname,
Dacinterp.h154 u8 begin, u8 *aml, char *pathname);
Daclocal.h1114 char pathname[ACPI_DB_LINE_BUFFER_SIZE]; member
/linux-4.4.14/tools/perf/util/
Dpath.c96 char *pathname = get_pathname(); in mkpath() local
99 len = vsnprintf(pathname, PATH_MAX, fmt, args); in mkpath()
103 return cleanup_path(pathname); in mkpath()
109 char *pathname = get_pathname(); in perf_path() local
116 memcpy(pathname, perf_dir, len); in perf_path()
118 pathname[len++] = '/'; in perf_path()
120 len += vsnprintf(pathname + len, PATH_MAX - len, fmt, args); in perf_path()
124 return cleanup_path(pathname); in perf_path()
Dbuild-id.h16 int filename__sprintf_build_id(const char *pathname, char *sbuild_id);
30 int build_id_cache__list_build_ids(const char *pathname,
Dbuild-id.c115 int filename__sprintf_build_id(const char *pathname, char *sbuild_id) in filename__sprintf_build_id() argument
120 ret = filename__read_build_id(pathname, build_id, sizeof(build_id)); in filename__sprintf_build_id()
318 int build_id_cache__list_build_ids(const char *pathname, in build_id_cache__list_build_ids() argument
328 dir_name = build_id_cache__dirname_from_path(pathname, false, false); in build_id_cache__list_build_ids()
Ddso.c169 bool is_kernel_module(const char *pathname, int cpumode) in is_kernel_module() argument
185 if (kmod_path__parse(&m, pathname)) { in is_kernel_module()
187 pathname); in is_kernel_module()
Ddso.h242 bool is_kernel_module(const char *pathname, int cpumode);
/linux-4.4.14/security/integrity/ima/
Dima_main.c84 const char **pathname) in ima_rdwr_violation_check() argument
106 *pathname = ima_d_path(&file->f_path, pathbuf); in ima_rdwr_violation_check()
109 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
112 ima_add_violation(file, *pathname, iint, in ima_rdwr_violation_check()
164 const char *pathname = NULL; in process_measurement() local
199 &pathbuf, &pathname); in process_measurement()
233 if (!pathname) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement()
234 pathname = ima_d_path(&file->f_path, &pathbuf); in process_measurement()
237 ima_store_measurement(iint, file, pathname, in process_measurement()
240 rc = ima_appraise_measurement(function, iint, file, pathname, in process_measurement()
[all …]
Dima_api.c325 char *pathname = NULL; in ima_d_path() local
329 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
330 if (IS_ERR(pathname)) { in ima_d_path()
333 pathname = NULL; in ima_d_path()
336 return pathname ?: (const char *)path->dentry->d_name.name; in ima_d_path()
DKconfig55 hash, defined as 20 bytes, and a null terminated pathname,
/linux-4.4.14/fs/
Dxattr.c367 static int path_setxattr(const char __user *pathname, in path_setxattr() argument
374 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_setxattr()
390 SYSCALL_DEFINE5(setxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
394 return path_setxattr(pathname, name, value, size, flags, LOOKUP_FOLLOW); in SYSCALL_DEFINE5()
397 SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname, in SYSCALL_DEFINE5() argument
401 return path_setxattr(pathname, name, value, size, flags, 0); in SYSCALL_DEFINE5()
471 static ssize_t path_getxattr(const char __user *pathname, in path_getxattr() argument
478 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in path_getxattr()
490 SYSCALL_DEFINE4(getxattr, const char __user *, pathname, in SYSCALL_DEFINE4() argument
493 return path_getxattr(pathname, name, value, size, LOOKUP_FOLLOW); in SYSCALL_DEFINE4()
[all …]
Dstatfs.c77 int user_statfs(const char __user *pathname, struct kstatfs *st) in user_statfs() argument
83 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs()
172 SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
175 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2()
181 SYSCALL_DEFINE3(statfs64, const char __user *, pathname, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
187 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3()
Dnamei.c3346 struct file *do_filp_open(int dfd, struct filename *pathname, in do_filp_open() argument
3353 set_nameidata(&nd, dfd, pathname); in do_filp_open()
3463 struct dentry *kern_path_create(int dfd, const char *pathname, in kern_path_create() argument
3466 return filename_create(dfd, getname_kernel(pathname), in kern_path_create()
3480 inline struct dentry *user_path_create(int dfd, const char __user *pathname, in user_path_create() argument
3483 return filename_create(dfd, getname(pathname), path, lookup_flags); in user_path_create()
3605 SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE3() argument
3613 dentry = user_path_create(dfd, pathname, &path, lookup_flags); in SYSCALL_DEFINE3()
3630 SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE2() argument
3632 return sys_mkdirat(AT_FDCWD, pathname, mode); in SYSCALL_DEFINE2()
[all …]
Dinternal.h102 extern struct file *do_filp_open(int dfd, struct filename *pathname,
Dopen.c120 static long do_sys_truncate(const char __user *pathname, loff_t length) in do_sys_truncate() argument
130 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in do_sys_truncate()
1055 SYSCALL_DEFINE2(creat, const char __user *, pathname, umode_t, mode) in SYSCALL_DEFINE2() argument
1057 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); in SYSCALL_DEFINE2()
Dstat.c315 SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname, in SYSCALL_DEFINE4() argument
327 error = user_path_at_empty(dfd, pathname, lookup_flags, &path, &empty); in SYSCALL_DEFINE4()
Dblock_dev.c1747 struct block_device *lookup_bdev(const char *pathname) in lookup_bdev() argument
1754 if (!pathname || !*pathname) in lookup_bdev()
1757 error = kern_path(pathname, LOOKUP_FOLLOW, &path); in lookup_bdev()
Dcompat.c250 COMPAT_SYSCALL_DEFINE2(statfs, const char __user *, pathname, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
253 int error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE2()
301 COMPAT_SYSCALL_DEFINE3(statfs64, const char __user *, pathname, compat_size_t, sz, struct compat_st… in COMPAT_SYSCALL_DEFINE3() argument
309 error = user_statfs(pathname, &tmp); in COMPAT_SYSCALL_DEFINE3()
/linux-4.4.14/samples/bpf/
Dlibbpf.c106 int bpf_obj_pin(int fd, const char *pathname) in bpf_obj_pin() argument
109 .pathname = ptr_to_u64((void *)pathname), in bpf_obj_pin()
116 int bpf_obj_get(const char *pathname) in bpf_obj_get() argument
119 .pathname = ptr_to_u64((void *)pathname), in bpf_obj_get()
Dlibbpf.h18 int bpf_obj_pin(int fd, const char *pathname);
19 int bpf_obj_get(const char *pathname);
/linux-4.4.14/kernel/bpf/
Dinode.c198 static int bpf_obj_do_pin(const struct filename *pathname, void *raw, in bpf_obj_do_pin() argument
208 dentry = kern_path_create(AT_FDCWD, pathname->name, &path, 0); in bpf_obj_do_pin()
233 int bpf_obj_pin_user(u32 ufd, const char __user *pathname) in bpf_obj_pin_user() argument
240 pname = getname(pathname); in bpf_obj_pin_user()
258 static void *bpf_obj_do_get(const struct filename *pathname, in bpf_obj_do_get() argument
266 ret = kern_path(pathname->name, LOOKUP_FOLLOW, &path); in bpf_obj_do_get()
290 int bpf_obj_get_user(const char __user *pathname) in bpf_obj_get_user() argument
297 pname = getname(pathname); in bpf_obj_get_user()
Dsyscall.c714 return bpf_obj_pin_user(attr->bpf_fd, u64_to_ptr(attr->pathname)); in bpf_obj_pin()
722 return bpf_obj_get_user(u64_to_ptr(attr->pathname)); in bpf_obj_get()
/linux-4.4.14/drivers/acpi/
Dutils.c287 acpi_string pathname, in acpi_evaluate_integer() argument
299 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_integer()
301 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_integer()
306 acpi_util_eval_error(handle, pathname, AE_BAD_DATA); in acpi_evaluate_integer()
321 acpi_string pathname, in acpi_evaluate_reference() argument
338 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_reference()
346 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference()
351 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference()
356 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference()
373 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_reference()
[all …]
Dscan.c897 char pathname[5] = { '_', 'P', 'R', '0' + state, '\0' }; in acpi_bus_init_power_state() local
904 status = acpi_evaluate_object(device->handle, pathname, NULL, &buffer); in acpi_bus_init_power_state()
920 pathname[2] = 'S'; in acpi_bus_init_power_state()
921 if (acpi_has_method(device->handle, pathname)) in acpi_bus_init_power_state()
/linux-4.4.14/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()
Daudit_tree.c20 char pathname[]; member
87 strcpy(tree->pathname, s); in alloc_tree()
106 return tree->pathname; in audit_tree_path()
464 audit_log_untrustedstring(ab, rule->tree->pathname); in audit_tree_log_remove_rule()
604 err = kern_path(tree->pathname, 0, &path); in audit_trim_trees()
633 int audit_make_tree(struct audit_krule *rule, char *pathname, u32 op) in audit_make_tree() argument
636 if (pathname[0] != '/' || in audit_make_tree()
641 rule->tree = alloc_tree(pathname); in audit_make_tree()
718 if (!strcmp(seed->pathname, tree->pathname)) { in audit_add_tree_rule()
737 err = kern_path(tree->pathname, 0, &path); in audit_add_tree_rule()
[all …]
Daudit_watch.c525 char *pathname; in audit_dupe_exe() local
527 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe()
528 if (!pathname) in audit_dupe_exe()
531 audit_mark = audit_alloc_mark(new, pathname, strlen(pathname)); in audit_dupe_exe()
533 kfree(pathname); in audit_dupe_exe()
Dsysctl_binary.c1303 char *pathname; in binary_sysctl() local
1306 pathname = sysctl_getname(name, nlen, &table); in binary_sysctl()
1307 result = PTR_ERR(pathname); in binary_sysctl()
1308 if (IS_ERR(pathname)) in binary_sysctl()
1324 file = file_open_root(mnt->mnt_root, mnt, pathname, flags, 0); in binary_sysctl()
1333 __putname(pathname); in binary_sysctl()
Dacct.c190 static int acct_on(struct filename *pathname) in acct_on() argument
204 file = file_open_name(pathname, O_WRONLY|O_APPEND|O_LARGEFILE, 0); in acct_on()
Daudit.c1633 char *p, *pathname; in audit_log_d_path() local
1639 pathname = kmalloc(PATH_MAX+11, ab->gfp_mask); in audit_log_d_path()
1640 if (!pathname) { in audit_log_d_path()
1644 p = d_path(path, pathname, PATH_MAX+11); in audit_log_d_path()
1650 kfree(pathname); in audit_log_d_path()
Daudit.h275 extern struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int …
/linux-4.4.14/arch/parisc/kernel/
Dsys_parisc32.c28 const char __user * pathname) in sys32_fanotify_mark() argument
32 dfd, pathname); in sys32_fanotify_mark()
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dsyscalls.c62 static long do_spu_create(const char __user *pathname, unsigned int flags, in do_spu_create() argument
69 dentry = user_path_create(AT_FDCWD, pathname, &path, LOOKUP_DIRECTORY); in do_spu_create()
/linux-4.4.14/tools/perf/
Dbuiltin-buildid-cache.c214 static int build_id_cache__purge_path(const char *pathname) in build_id_cache__purge_path() argument
220 err = build_id_cache__list_build_ids(pathname, &list); in build_id_cache__purge_path()
226 pr_debug("Removing %s %s: %s\n", pos->s, pathname, in build_id_cache__purge_path()
234 pr_debug("Purging %s: %s\n", pathname, err ? "FAIL" : "Ok"); in build_id_cache__purge_path()
Dbuiltin-trace.c1453 static int trace__set_fd_pathname(struct thread *thread, int fd, const char *pathname) in trace__set_fd_pathname() argument
1474 ttrace->paths.table[fd] = strdup(pathname); in trace__set_fd_pathname()
1481 char linkname[PATH_MAX], pathname[PATH_MAX]; in thread__read_fd_path() local
1493 if (lstat(linkname, &st) < 0 || st.st_size + 1 > (off_t)sizeof(pathname)) in thread__read_fd_path()
1496 ret = readlink(linkname, pathname, sizeof(pathname)); in thread__read_fd_path()
1501 pathname[ret] = '\0'; in thread__read_fd_path()
1502 return trace__set_fd_pathname(thread, fd, pathname); in thread__read_fd_path()
/linux-4.4.14/arch/s390/kernel/
Dcompat_wrapper.c62 COMPAT_SYSCALL_WRAP2(creat, const char __user *, pathname, umode_t, mode);
64 COMPAT_SYSCALL_WRAP1(unlink, const char __user *, pathname);
71 COMPAT_SYSCALL_WRAP2(mkdir, const char __user *, pathname, umode_t, mode);
72 COMPAT_SYSCALL_WRAP1(rmdir, const char __user *, pathname);
142 COMPAT_SYSCALL_WRAP3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode);
145 COMPAT_SYSCALL_WRAP3(unlinkat, int, dfd, const char __user *, pathname, int, flag);
/linux-4.4.14/security/tomoyo/
Drealpath.c319 char *tomoyo_realpath_nofollow(const char *pathname) in tomoyo_realpath_nofollow() argument
323 if (pathname && kern_path(pathname, 0, &path) == 0) { in tomoyo_realpath_nofollow()
DKconfig12 This selects TOMOYO Linux, pathname-based access control.
63 This is the default pathname of policy loader which is called before
73 This is the default pathname of activation trigger.
Dgroup.c125 tomoyo_path_matches_group(const struct tomoyo_path_info *pathname, in tomoyo_path_matches_group() argument
132 if (!tomoyo_path_matches_pattern(pathname, member->member_name)) in tomoyo_path_matches_group()
Dcommon.h949 char *tomoyo_realpath_nofollow(const char *pathname);
958 (const struct tomoyo_path_info *pathname, const struct tomoyo_group *group);
/linux-4.4.14/include/acpi/
Dacpixf.h491 acpi_string pathname,
513 acpi_string pathname,
520 acpi_string pathname,
646 acpi_string pathname,
651 acpi_string pathname))
906 u8 *aml, char *pathname))
Dacpiosxf.h386 void *acpi_os_open_directory(char *pathname,
437 u8 begin, u8 *aml, char *pathname);
Dacpi_bus.h41 acpi_string pathname,
45 acpi_string pathname,
/linux-4.4.14/drivers/mtd/ubi/
Dkapi.c302 struct ubi_volume_desc *ubi_open_volume_path(const char *pathname, int mode) in ubi_open_volume_path() argument
308 dbg_gen("open volume %s, mode %d", pathname, mode); in ubi_open_volume_path()
310 if (!pathname || !*pathname) in ubi_open_volume_path()
313 error = kern_path(pathname, LOOKUP_FOLLOW, &path); in ubi_open_volume_path()
/linux-4.4.14/include/linux/
Dbpf.h183 int bpf_obj_pin_user(u32 ufd, const char __user *pathname);
184 int bpf_obj_get_user(const char __user *pathname);
Dsyscalls.h479 asmlinkage long sys_unlink(const char __user *pathname);
516 asmlinkage long sys_creat(const char __user *pathname, umode_t mode);
581 asmlinkage long sys_mkdir(const char __user *pathname, umode_t mode);
584 asmlinkage long sys_rmdir(const char __user *pathname);
756 asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, umode_t mode);
757 asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag);
825 const char __user *pathname);
Dcompat.h493 asmlinkage long compat_sys_statfs(const char __user *pathname,
497 asmlinkage long compat_sys_statfs64(const char __user *pathname,
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c90 osl_get_customized_table(char *pathname,
1300 osl_get_customized_table(char *pathname, in osl_get_customized_table() argument
1315 table_dir = acpi_os_open_directory(pathname, "*", REQUEST_FILE_ONLY); in osl_get_customized_table()
1345 sprintf(table_filename, "%s/%4.4s%d", pathname, in osl_get_customized_table()
1348 sprintf(table_filename, "%s/%4.4s", pathname, in osl_get_customized_table()
/linux-4.4.14/Documentation/filesystems/
Dspufs.txt415 int spu_create(const char *pathname, int flags, mode_t mode);
421 pathname and returns a handle to associated with it. pathname must
424 ated on pathname and it is populated with files.
461 EFAULT pathname is not a valid string pointer in the current address
464 EINVAL pathname is not a directory in the spufs mount point.
466 ELOOP Too many symlinks were found while resolving pathname.
471 pathname was too long.
475 ENOENT Part of pathname could not be resolved.
488 A part of pathname is not a directory.
500 pathname must point to a location beneath the mount point of spufs. By
Dvfs.txt32 calls. The pathname argument that is passed to them is used by the VFS
35 translate a pathname (filename) into a specific dentry. Dentries live
40 some bits of the cache are missing. In order to resolve your pathname
101 will be attached to the mountpoint, so that when pathname resolution
1014 d_dname: called when the pathname of a dentry should be generated.
1016 pathname generation. (Instead of doing it when dentry is created,
Dpath-lookup.txt7 with the first component of the pathname (eg. root or cwd) with a known dentry,
DLocking156 by resolving the pathname passed to syscall.
Dproc.txt341 address perms offset dev inode pathname
376 The "pathname" shows the name associated file for this mapping. If the mapping
Dcoda.txt882 pathname srcname. The attributes of the newly created object are to
/linux-4.4.14/fs/notify/fanotify/
Dfanotify_user.c806 const char __user *, pathname) in SYSCALL_DEFINE5() argument
816 __func__, fanotify_fd, flags, dfd, pathname, mask); in SYSCALL_DEFINE5()
878 ret = fanotify_find_path(dfd, pathname, &path, flags); in SYSCALL_DEFINE5()
916 const char __user *, pathname) in COMPAT_SYSCALL_DEFINE6() argument
924 dfd, pathname); in COMPAT_SYSCALL_DEFINE6()
/linux-4.4.14/fs/nfs/
Dmount_clnt.c297 static void encode_mntdirpath(struct xdr_stream *xdr, const char *pathname) in encode_mntdirpath() argument
299 const u32 pathname_len = strlen(pathname); in encode_mntdirpath()
303 xdr_encode_opaque(p, pathname, pathname_len); in encode_mntdirpath()
Dnfs4namespace.c32 static inline char *nfs4_pathname_string(const struct nfs4_pathname *pathname, in nfs4_pathname_string() argument
41 n = pathname->ncomponents; in nfs4_pathname_string()
43 const struct nfs4_string *component = &pathname->components[n]; in nfs4_pathname_string()
/linux-4.4.14/security/
DKconfig66 bool "Security hooks for pathname based access control"
69 This enables the security hooks for pathname based access control.
71 implement pathname based access controls.
/linux-4.4.14/include/uapi/linux/raid/
Dmd_u.h145 char pathname[4096]; member
/linux-4.4.14/include/linux/mtd/
Dubi.h243 struct ubi_volume_desc *ubi_open_volume_path(const char *pathname, int mode);
/linux-4.4.14/include/uapi/linux/
Dbpf.h131 __aligned_u64 pathname; member
/linux-4.4.14/Documentation/device-mapper/
Dlinear.txt9 <dev path>: Full pathname to the underlying block-device, or a
Dstriped.txt14 <dev path>: Full pathname to the underlying block-device, or a
Ddm-flakey.txt22 <dev path>: Full pathname to the underlying block-device, or a
/linux-4.4.14/sound/oss/
DKconfig37 string "Full pathname of MSNDINIT.BIN firmware file"
48 string "Full pathname of MSNDPERM.BIN firmware file"
99 string "Full pathname of PNDSPINI.BIN firmware file"
110 string "Full pathname of PNDSPERM.BIN firmware file"
298 string "Full pathname of TRXPRO.HEX firmware file"
302 Enter the full pathname of your TRXPRO.HEX file, starting from /.
406 string "Full pathname of DSPxxx.LD firmware file"
410 Enter the full pathname of your DSPxxx.LD file or SYNTH.LD file,
/linux-4.4.14/tools/perf/Documentation/
Dperf-inject.txt45 kallsyms pathname
Dperf-annotate.txt48 vmlinux pathname.
Dperf-script.txt190 vmlinux pathname
193 kallsyms pathname
Dperf-trace.txt109 Show tool stats such as number of times fd->pathname was discovered thru
Dperf-diff.txt35 kallsyms pathname
Dperf-report.txt246 vmlinux pathname
249 kallsyms pathname
/linux-4.4.14/tools/power/x86/turbostat/
Dturbostat.c269 char pathname[32]; in get_msr() local
272 sprintf(pathname, "/dev/cpu/%d/msr", cpu); in get_msr()
273 fd = open(pathname, O_RDONLY); in get_msr()
275 err(-1, "%s open failed, try chown or chmod +r /dev/cpu/*/msr, or run as root", pathname); in get_msr()
281 err(-1, "%s offset 0x%llx read failed", pathname, (unsigned long long)offset); in get_msr()
1759 char pathname[32]; in check_dev_msr() local
1761 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_dev_msr()
1762 if (stat(pathname, &sb)) in check_dev_msr()
1775 char pathname[32]; in check_permissions() local
1790 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_permissions()
[all …]
/linux-4.4.14/Documentation/security/
DIMA-templates.txt7 and pathname. The filedata hash is limited to 20 bytes (md5/sha1).
8 The pathname is a null terminated string, limited to 255 characters.
Dtomoyo.txt38 The role of "pathname based access control" in security.
/linux-4.4.14/tools/vm/
Dpage-types.c237 static int checked_open(const char *pathname, int flags) in checked_open() argument
239 int fd = open(pathname, flags); in checked_open()
242 perror(pathname); in checked_open()
/linux-4.4.14/fs/autofs4/
Ddev-ioctl.c194 static int find_autofs_mount(const char *pathname, in find_autofs_mount() argument
200 int err = kern_path_mountpoint(AT_FDCWD, pathname, &path, 0); in find_autofs_mount()
/linux-4.4.14/Documentation/usb/
Dhotplug.txt37 holds the pathname "/sbin/hotplug". That parameter names a program
71 the pathname of the device, and is useful for devices with multiple and/or
/linux-4.4.14/arch/alpha/kernel/
Dosf_sys.c339 SYSCALL_DEFINE3(osf_statfs, const char __user *, pathname, in SYSCALL_DEFINE3() argument
343 int error = user_statfs(pathname, &linux_stat); in SYSCALL_DEFINE3()
395 SYSCALL_DEFINE3(osf_statfs64, char __user *, pathname, in SYSCALL_DEFINE3() argument
399 int error = user_statfs(pathname, &linux_stat); in SYSCALL_DEFINE3()
/linux-4.4.14/Documentation/
Dmono.txt50 # Replace /usr/bin/mono with the correct pathname to
Ddynamic-debug-howto.txt155 The given string is compared against either the full pathname, the
156 src-root relative pathname, or the basename of the source file of
Dmodule-signing.txt167 The full pathname for the resulting kernel_key.pem file can then be specified
Dkernel-parameters.txt2262 [NFS] sets the pathname to the program which is used
2343 [NFS] [OBJLAYOUT] sets the pathname to the program which
Ddevices.txt20 Standard (FHS). The FHS is available from http://www.pathname.com/fhs/.
/linux-4.4.14/fs/notify/inotify/
Dinotify_user.c699 SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname, in SYSCALL_DEFINE3() argument
740 ret = inotify_find_inode(pathname, &path, flags); in SYSCALL_DEFINE3()
/linux-4.4.14/Documentation/acpi/
Dmethod-customizing.txt43 Note that the full pathname of the method in ACPI namespace
/linux-4.4.14/mm/
Dswapfile.c1853 struct filename *pathname; in SYSCALL_DEFINE1() local
1862 pathname = getname(specialfile); in SYSCALL_DEFINE1()
1863 if (IS_ERR(pathname)) in SYSCALL_DEFINE1()
1864 return PTR_ERR(pathname); in SYSCALL_DEFINE1()
1866 victim = file_open_name(pathname, O_RDWR|O_LARGEFILE, 0); in SYSCALL_DEFINE1()
1995 putname(pathname); in SYSCALL_DEFINE1()
/linux-4.4.14/Documentation/mic/mpssd/
Dmpssd.c1433 char pathname[PATH_MAX]; in open_state_fd() local
1436 snprintf(pathname, PATH_MAX - 1, "%s/%s/%s", in open_state_fd()
1439 fd = open(pathname, O_RDONLY); in open_state_fd()
1442 mic->name, pathname, strerror(errno)); in open_state_fd()
/linux-4.4.14/fs/proc/
Dbase.c1592 char *pathname; in do_proc_readlink() local
1598 pathname = d_path(path, tmp, PAGE_SIZE); in do_proc_readlink()
1599 len = PTR_ERR(pathname); in do_proc_readlink()
1600 if (IS_ERR(pathname)) in do_proc_readlink()
1602 len = tmp + PAGE_SIZE - 1 - pathname; in do_proc_readlink()
1606 if (copy_to_user(buffer, pathname, len)) in do_proc_readlink()
/linux-4.4.14/Documentation/frv/
Dbooting.txt150 and the pathname on that server of the filesystem.
/linux-4.4.14/fs/ext4/
Dsuper.c461 char pathname[80], *path; in __ext4_error_file() local
466 path = file_path(file, pathname, sizeof(pathname)); in __ext4_error_file()
/linux-4.4.14/drivers/md/
Dmd.c5896 ptr = file_path(mddev->bitmap_info.file, file->pathname, in get_bitmap_file()
5897 sizeof(file->pathname)); in get_bitmap_file()
5901 memmove(file->pathname, ptr, in get_bitmap_file()
5902 sizeof(file->pathname)-(ptr-file->pathname)); in get_bitmap_file()
/linux-4.4.14/Documentation/cgroups/
Dcgroups.txt290 supplying the pathname (relative to the mount point of the cgroup
/linux-4.4.14/
DCREDITS2961 E: quinlan@pathname.com
2962 W: http://www.pathname.com/~quinlan/
/linux-4.4.14/arch/arm/
DKconfig807 # This is sorted alphabetically by mach-* pathname. However, plat-*
/linux-4.4.14/Documentation/scsi/
Dncr53c8xx.txt323 The device associated with a host has the following pathname:
/linux-4.4.14/Documentation/RCU/
DRTFP.txt2532 on some seriously pathname-lookup intensive loads."