Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/Linux-v4.19/tools/iio/
Diio_utils.c96 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local
126 ret = asprintf(&filename, in iioutils_get_type()
133 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
137 filename); in iioutils_get_type()
170 filename); in iioutils_get_type()
175 free(filename); in iioutils_get_type()
176 filename = 0; in iioutils_get_type()
192 if (filename) in iioutils_get_type()
193 free(filename); in iioutils_get_type()
227 char *filename = NULL; in iioutils_get_param_float() local
[all …]
Diio_utils.h74 int write_sysfs_int(const char *filename, const char *basedir, int val);
75 int write_sysfs_int_and_verify(const char *filename, const char *basedir,
77 int write_sysfs_string_and_verify(const char *filename, const char *basedir,
79 int write_sysfs_string(const char *filename, const char *basedir,
81 int read_sysfs_posint(const char *filename, const char *basedir);
82 int read_sysfs_float(const char *filename, const char *basedir, float *val);
83 int read_sysfs_string(const char *filename, const char *basedir, char *str);
/Linux-v4.19/tools/power/acpi/tools/acpidump/
Dapfiles.c100 char filename[ACPI_NAME_SIZE + 16]; in ap_write_to_binary_file() local
113 ACPI_MOVE_NAME(filename, ACPI_RSDP_NAME); in ap_write_to_binary_file()
115 ACPI_MOVE_NAME(filename, table->signature); in ap_write_to_binary_file()
118 filename[0] = (char)tolower((int)filename[0]); in ap_write_to_binary_file()
119 filename[1] = (char)tolower((int)filename[1]); in ap_write_to_binary_file()
120 filename[2] = (char)tolower((int)filename[2]); in ap_write_to_binary_file()
121 filename[3] = (char)tolower((int)filename[3]); in ap_write_to_binary_file()
122 filename[ACPI_NAME_SIZE] = 0; in ap_write_to_binary_file()
128 strcat(filename, instance_str); in ap_write_to_binary_file()
131 strcat(filename, FILE_SUFFIX_BINARY_TABLE); in ap_write_to_binary_file()
[all …]
/Linux-v4.19/security/tomoyo/
Dutil.c242 char *filename; in tomoyo_parse_name_union() local
248 filename = tomoyo_read_token(param); in tomoyo_parse_name_union()
249 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union()
251 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
252 return ptr->filename != NULL; in tomoyo_parse_name_union()
515 bool tomoyo_correct_path(const char *filename) in tomoyo_correct_path() argument
517 return *filename == '/' && tomoyo_correct_word(filename); in tomoyo_correct_path()
601 static int tomoyo_const_part_length(const char *filename) in tomoyo_const_part_length() argument
606 if (!filename) in tomoyo_const_part_length()
608 while ((c = *filename++) != '\0') { in tomoyo_const_part_length()
[all …]
/Linux-v4.19/samples/mic/mpssd/
Dsysfs.c28 char filename[PATH_MAX]; in readsysfs() local
35 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); in readsysfs()
37 snprintf(filename, PATH_MAX, in readsysfs()
40 fd = open(filename, O_RDONLY); in readsysfs()
43 filename, strerror(errno)); in readsysfs()
50 filename, strerror(errno)); in readsysfs()
70 char filename[PATH_MAX]; in setsysfs() local
75 snprintf(filename, PATH_MAX, "%s/%s", MICSYSFSDIR, entry); in setsysfs()
77 snprintf(filename, PATH_MAX, "%s/%s/%s", in setsysfs()
82 fd = open(filename, O_RDWR); in setsysfs()
[all …]
/Linux-v4.19/scripts/
Dheaders_check.pl31 my $filename;
34 $filename = $file;
36 open(my $fh, '<', $filename)
37 or die "$filename: $!\n";
62 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n";
79 printf STDERR "$filename:$lineno: " .
88 printf STDERR "$filename:$lineno: leaks CONFIG_$1 to userspace where it is not valid\n";
95 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
105 printf STDERR "$filename:$lineno: " .
120 my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path);
[all …]
Dcheckincludes.pl60 foreach my $filename (keys %includedfiles) {
61 if ($includedfiles{$filename} > 1) {
62 print "$file: $filename is included more than once.\n";
75 foreach my $filename (keys %includedfiles) {
76 if ($1 eq $filename) {
77 if ($includedfiles{$filename} > 1) {
78 $includedfiles{$filename}--;
Dheaderdep.pl63 my $filename = shift;
66 my $stripped = $filename;
69 return $stripped if $stripped ne $filename;
72 return $filename;
77 my $filename = shift;
78 return $filename if -f $filename;
81 my $path = "$i/$filename";
/Linux-v4.19/fs/
Dutimes.c24 SYSCALL_DEFINE2(utime, char __user *, filename, struct utimbuf __user *, times) in SYSCALL_DEFINE2() argument
35 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
119 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() argument
132 if (filename == NULL && dfd != AT_FDCWD) { in do_utimes()
152 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes()
168 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
184 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags); in SYSCALL_DEFINE4()
187 static long do_futimesat(int dfd, const char __user *filename, in do_futimesat() argument
212 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); in do_futimesat()
216 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
[all …]
Dopen.c347 long do_faccessat(int dfd, const char __user *filename, int mode) in do_faccessat() argument
378 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat()
423 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
425 return do_faccessat(dfd, filename, mode); in SYSCALL_DEFINE3()
428 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
430 return do_faccessat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
433 int ksys_chdir(const char __user *filename) in ksys_chdir() argument
439 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in ksys_chdir()
459 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
461 return ksys_chdir(filename); in SYSCALL_DEFINE1()
[all …]
Dexec.c124 struct filename *tmp = getname(library); in SYSCALL_DEFINE1()
835 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
881 struct filename *filename = getname_kernel(name); in open_exec() local
882 struct file *f = ERR_CAST(filename); in open_exec()
884 if (!IS_ERR(filename)) { in open_exec()
885 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
886 putname(filename); in open_exec()
1371 __set_task_comm(current, kbasename(bprm->filename), true); in setup_new_exec()
1427 if (bprm->interp != bprm->filename) in free_bprm()
1435 if (bprm->interp != bprm->filename) in bprm_change_interp()
[all …]
/Linux-v4.19/arch/xtensa/platforms/iss/
Dsimdisk.c28 const char *filename; member
44 static const char *filename[MAX_SIMDISK_COUNT] = { variable
56 if (n_files < ARRAY_SIZE(filename)) in simdisk_param_set_filename()
57 filename[n_files++] = val; in simdisk_param_set_filename()
66 module_param_cb(filename, &simdisk_param_ops_filename, &n_files, 0);
67 MODULE_PARM_DESC(filename, "Backing storage filename.");
154 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument
158 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
159 if (filename == NULL) in simdisk_attach()
168 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach()
[all …]
/Linux-v4.19/tools/power/cpupower/bench/
Dparse.c68 char *filename, *filename_tmp; in prepare_output() local
83 filename = malloc(sizeof(char) * len); in prepare_output()
84 if (!filename) { in prepare_output()
91 filename_tmp = realloc(filename, sizeof(*filename) * len); in prepare_output()
94 free(filename); in prepare_output()
99 filename = filename_tmp; in prepare_output()
100 snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", in prepare_output()
103 snprintf(filename, len - 1, "%s/benchmark_%li.log", in prepare_output()
107 dprintf("logfilename: %s\n", filename); in prepare_output()
109 output = fopen(filename, "w+"); in prepare_output()
[all …]
/Linux-v4.19/tools/testing/selftests/kvm/lib/
Delf.c17 static void elfhdr_get(const char *filename, Elf64_Ehdr *hdrp) in elfhdr_get() argument
23 fd = open(filename, O_RDONLY); in elfhdr_get()
26 " rv: %i errno: %i", filename, fd, errno); in elfhdr_get()
43 filename, in elfhdr_get()
51 filename, in elfhdr_get()
74 filename, ident[EI_VERSION], EV_CURRENT); in elfhdr_get()
115 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename, in kvm_vm_elf_load() argument
123 fd = open(filename, O_RDONLY); in kvm_vm_elf_load()
126 " rv: %i errno: %i", filename, fd, errno); in kvm_vm_elf_load()
129 elfhdr_get(filename, &hdr); in kvm_vm_elf_load()
[all …]
/Linux-v4.19/tools/perf/
Dbuiltin-buildid-cache.c114 static int build_id_cache__add_kcore(const char *filename, bool force) in build_id_cache__add_kcore() argument
120 strlcpy(from_dir, filename, sizeof(from_dir)); in build_id_cache__add_kcore()
171 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
179 err = filename__read_build_id(filename, &build_id, sizeof(build_id)); in build_id_cache__add_file()
182 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__add_file()
187 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
189 pr_debug("Adding %s %s: %s\n", sbuild_id, filename, in build_id_cache__add_file()
194 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
203 err = filename__read_build_id(filename, &build_id, sizeof(build_id)); in build_id_cache__remove_file()
206 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__remove_file()
[all …]
/Linux-v4.19/samples/bpf/
Dtest_overhead_user.c132 char filename[256]; in main() local
149 snprintf(filename, sizeof(filename), in main()
151 if (load_bpf_file(filename)) { in main()
161 snprintf(filename, sizeof(filename), in main()
163 if (load_bpf_file(filename)) { in main()
173 snprintf(filename, sizeof(filename), in main()
175 if (load_bpf_file(filename)) { in main()
Dsyscall_tp_user.c53 static int test(char *filename, int num_progs) in test() argument
58 if (load_bpf_file(filename)) { in test()
73 fd = open(filename, O_RDONLY); in test()
93 char filename[256]; in main() local
108 snprintf(filename, sizeof(filename), "%s_kern.o", argv[0]); in main()
110 return test(filename, num_progs); in main()
/Linux-v4.19/scripts/dtc/
Dutil.c230 int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len) in utilfdt_read_err_len() argument
238 if (strcmp(filename, "-") != 0) { in utilfdt_read_err_len()
239 fd = open(filename, O_RDONLY); in utilfdt_read_err_len()
271 int utilfdt_read_err(const char *filename, char **buffp) in utilfdt_read_err() argument
274 return utilfdt_read_err_len(filename, buffp, &len); in utilfdt_read_err()
277 char *utilfdt_read_len(const char *filename, off_t *len) in utilfdt_read_len() argument
280 int ret = utilfdt_read_err_len(filename, &buff, len); in utilfdt_read_len()
283 fprintf(stderr, "Couldn't open blob from '%s': %s\n", filename, in utilfdt_read_len()
291 char *utilfdt_read(const char *filename) in utilfdt_read() argument
294 return utilfdt_read_len(filename, &len); in utilfdt_read()
[all …]
/Linux-v4.19/tools/perf/util/
Dsrcline.c133 const char *filename; member
209 &a2l->filename, &a2l->funcname, in find_address_in_section()
212 if (a2l->filename && !strlen(a2l->filename)) in find_address_in_section()
213 a2l->filename = NULL; in find_address_in_section()
270 if (a2l->filename) in inline_list__append_dso_a2l()
271 srcline = srcline_from_fileline(a2l->filename, a2l->line); in inline_list__append_dso_a2l()
308 while (bfd_find_inliner_info(a2l->abfd, &a2l->filename, in addr2line()
312 if (a2l->filename && !strlen(a2l->filename)) in addr2line()
313 a2l->filename = NULL; in addr2line()
325 *file = a2l->filename ? strdup(a2l->filename) : NULL; in addr2line()
[all …]
Dbuild-id.c543 char *realname = (char *)name, *filename; in build_id_cache__cachedir() local
552 if (asprintf(&filename, "%s%s%s%s%s", buildid_dir, slash ? "/" : "", in build_id_cache__cachedir()
555 filename = NULL; in build_id_cache__cachedir()
560 return filename; in build_id_cache__cachedir()
640 char *realname = NULL, *filename = NULL, *dir_name = NULL, in build_id_cache__add_s() local
668 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add_s()
671 filename = NULL; in build_id_cache__add_s()
675 if (access(filename, F_OK)) { in build_id_cache__add_s()
677 if (copyfile("/proc/kallsyms", filename)) in build_id_cache__add_s()
680 if (copyfile_ns(name, filename, nsi)) in build_id_cache__add_s()
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_libbpf_open.c86 int test_open_file(char *filename, bool verbose) in test_open_file() argument
92 printf("Open BPF ELF-file with libbpf: %s\n", filename); in test_open_file()
95 bpfobj = bpf_object__open(filename); in test_open_file()
102 filename, err_buf); in test_open_file()
118 char filename[1024] = { 0 }; in main() local
147 snprintf(filename, sizeof(filename), "%s", argv[optind]); in main()
149 return test_open_file(filename, verbose); in main()
/Linux-v4.19/security/integrity/ima/
Dima_api.c91 const unsigned char *filename, int pcr) in ima_store_template() argument
119 result = ima_add_template_entry(entry, violation, op, inode, filename); in ima_store_template()
130 void ima_add_violation(struct file *file, const unsigned char *filename, in ima_add_violation() argument
136 struct ima_event_data event_data = {iint, file, filename, NULL, 0, in ima_add_violation()
150 filename, CONFIG_IMA_MEASURE_PCR_IDX); in ima_add_violation()
154 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_add_violation()
204 const char *filename = file->f_path.dentry->d_name.name; in ima_collect_measurement() local
256 filename, "collect_data", audit_cause, in ima_collect_measurement()
278 struct file *file, const unsigned char *filename, in ima_store_measurement() argument
287 struct ima_event_data event_data = {iint, file, filename, xattr_value, in ima_store_measurement()
[all …]
/Linux-v4.19/drivers/firmware/tegra/
Dbpmp-debugfs.c85 const char *filename; in get_filename() local
95 filename = dentry_path(file->f_path.dentry, buf, size); in get_filename()
96 if (IS_ERR(filename)) in get_filename()
99 if (strlen(filename) < root_len || in get_filename()
100 strncmp(filename, root_path, root_len)) in get_filename()
103 filename += root_len; in get_filename()
105 return filename; in get_filename()
212 const char *filename; in debugfs_show() local
216 filename = get_filename(bpmp, file, buf, sizeof(buf)); in debugfs_show()
217 if (!filename) in debugfs_show()
[all …]
/Linux-v4.19/tools/lib/api/fs/
Dfs.h31 int filename__read_int(const char *filename, int *value);
32 int filename__read_ull(const char *filename, unsigned long long *value);
33 int filename__read_xll(const char *filename, unsigned long long *value);
34 int filename__read_str(const char *filename, char **buf, size_t *sizep);
36 int filename__write_int(const char *filename, int value);
/Linux-v4.19/arch/um/kernel/
Dinitrd.c15 static int load_initrd(char *filename, void *buf, int size);
61 static int load_initrd(char *filename, void *buf, int size) in load_initrd() argument
65 fd = os_open_file(filename, of_read(OPENFLAGS()), 0); in load_initrd()
67 printk(KERN_ERR "Opening '%s' failed - err = %d\n", filename, in load_initrd()
75 filename, -n); in load_initrd()

12345678910>>...15