Home
last modified time | relevance | path

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

12345678910>>...19

/linux/tools/iio/
H A Diio_utils.c95 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local
125 ret = asprintf(&filename, in iioutils_get_type()
132 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
136 filename); in iioutils_get_type()
169 filename); in iioutils_get_type()
174 free(filename); in iioutils_get_type()
175 filename = 0; in iioutils_get_type()
191 if (filename) in iioutils_get_type()
192 free(filename); in iioutils_get_type()
226 char *filename = NULL; in iioutils_get_param_float() local
[all …]
H A Diio_utils.h68 int write_sysfs_int(const char *filename, const char *basedir, int val);
69 int write_sysfs_int_and_verify(const char *filename, const char *basedir,
71 int write_sysfs_string_and_verify(const char *filename, const char *basedir,
73 int write_sysfs_string(const char *filename, const char *basedir,
75 int read_sysfs_posint(const char *filename, const char *basedir);
76 int read_sysfs_float(const char *filename, const char *basedir, float *val);
77 int read_sysfs_string(const char *filename, const char *basedir, char *str);
/linux/tools/power/acpi/tools/acpidump/
H A Dapfiles.c106 char filename[ACPI_NAMESEG_SIZE + 16]; in ap_write_to_binary_file() local
119 ACPI_COPY_NAMESEG(filename, ACPI_RSDP_NAME); in ap_write_to_binary_file()
121 ACPI_COPY_NAMESEG(filename, table->signature); in ap_write_to_binary_file()
124 filename[0] = (char)tolower((int)filename[0]); in ap_write_to_binary_file()
125 filename[1] = (char)tolower((int)filename[1]); in ap_write_to_binary_file()
126 filename[2] = (char)tolower((int)filename[2]); in ap_write_to_binary_file()
127 filename[3] = (char)tolower((int)filename[3]); in ap_write_to_binary_file()
128 filename[ACPI_NAMESEG_SIZE] = 0; in ap_write_to_binary_file()
134 strcat(filename, instance_str); in ap_write_to_binary_file()
137 strcat(filename, FILE_SUFFIX_BINARY_TABLE); in ap_write_to_binary_file()
[all …]
/linux/security/tomoyo/
H A Dutil.c143 static bool tomoyo_correct_path2(const char *filename, const size_t len); in tomoyo_read_token()
247 char *filename; in tomoyo_parse_name_union()
254 filename = tomoyo_read_token(param); in tomoyo_parse_name_union()
255 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union()
257 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
258 return ptr->filename != NULL; in tomoyo_parse_name_union()
523 * @filename: The pathname to check.
524 * @len: Length of @filename.
526 * Returns true if @filename follow
250 char *filename; tomoyo_parse_name_union() local
531 tomoyo_correct_path2(const char * filename,const size_t len) tomoyo_correct_path2() argument
547 tomoyo_correct_path(const char * filename) tomoyo_correct_path() argument
635 tomoyo_const_part_length(const char * filename) tomoyo_const_part_length() argument
698 tomoyo_file_matches_pattern2(const char * filename,const char * filename_end,const char * pattern,const char * pattern_end) tomoyo_file_matches_pattern2() argument
817 tomoyo_file_matches_pattern(const char * filename,const char * filename_end,const char * pattern,const char * pattern_end) tomoyo_file_matches_pattern() argument
937 tomoyo_path_matches_pattern(const struct tomoyo_path_info * filename,const struct tomoyo_path_info * pattern) tomoyo_path_matches_pattern() argument
[all...]
/linux/arch/xtensa/platforms/iss/
H A Dsimdisk.c28 const char *filename; member
43 static const char *filename[MAX_SIMDISK_COUNT] = { variable
55 if (n_files < ARRAY_SIZE(filename)) in simdisk_param_set_filename()
56 filename[n_files++] = val; in simdisk_param_set_filename()
65 module_param_cb(filename, &simdisk_param_ops_filename, &n_files, 0);
66 MODULE_PARM_DESC(filename, "Backing storage filename.");
151 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument
155 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
156 if (filename == NULL) in simdisk_attach()
165 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach()
[all …]
/linux/usr/include/
H A 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 …]
/linux/arch/um/kernel/
H A Dload_file.c10 static int __init __uml_load_file(const char *filename, void *buf, int size) in __uml_load_file() argument
14 fd = os_open_file(filename, of_read(OPENFLAGS()), 0); in __uml_load_file()
16 printk(KERN_ERR "Opening '%s' failed - err = %d\n", filename, in __uml_load_file()
24 filename, -n); in __uml_load_file()
32 void *uml_load_file(const char *filename, unsigned long long *size) in uml_load_file() argument
39 if (!filename) in uml_load_file()
42 err = os_file_size(filename, size); in uml_load_file()
47 printk(KERN_ERR "\"%s\" is empty\n", filename); in uml_load_file()
55 if (__uml_load_file(filename, area, *size)) { in uml_load_file()
/linux/tools/perf/tests/
H A Dsymbols.c68 static void get_test_dso_filename(char *filename, size_t max_sz) in get_test_dso_filename() argument
71 strlcpy(filename, dso_to_test, max_sz); in get_test_dso_filename()
73 perf_exe(filename, max_sz); in get_test_dso_filename()
76 static int create_map(struct test_info *ti, char *filename, struct map **map_p) in create_map() argument
78 struct dso *dso = machine__findnew_dso(ti->machine, filename); in create_map()
81 * If 'filename' matches a current kernel module, must use a kernel in create_map()
89 filename); in create_map()
100 PROT_EXEC, 0, NULL, filename, ti->thread); in create_map()
164 static int test_file(struct test_info *ti, char *filename) in test_file() argument
170 pr_debug("Testing %s\n", filename); in test_file()
203 char filename[PATH_MAX]; test__symbols() local
[all...]
/linux/security/integrity/ima/
H A Dima_api.c104 const unsigned char *filename, int pcr) in ima_store_template() argument
122 result = ima_add_template_entry(entry, violation, op, inode, filename); in ima_store_template()
133 void ima_add_violation(struct file *file, const unsigned char *filename, in ima_add_violation() argument
141 .filename = filename, in ima_add_violation()
155 filename, CONFIG_IMA_MEASURE_PCR_IDX); in ima_add_violation()
159 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_add_violation()
251 struct name_snapshot filename; in ima_collect_measurement() local
322 take_dentry_name_snapshot(&filename, file->f_path.dentry); in ima_collect_measurement()
325 filename.name.name, "collect_data", in ima_collect_measurement()
328 release_dentry_name_snapshot(&filename); in ima_collect_measurement()
[all …]
/linux/tools/power/cpupower/bench/
H A Dparse.c55 char *filename, *filename_tmp; in prepare_output() local
70 filename = malloc(sizeof(char) * len); in prepare_output()
71 if (!filename) { in prepare_output()
78 filename_tmp = realloc(filename, sizeof(*filename) * len); in prepare_output()
81 free(filename); in prepare_output()
86 filename = filename_tmp; in prepare_output()
87 snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", in prepare_output()
90 snprintf(filename, len - 1, "%s/benchmark_%li.log", in prepare_output()
94 dprintf("logfilename: %s\n", filename); in prepare_output()
96 output = fopen(filename, "w+"); in prepare_output()
[all …]
/linux/include/linux/
H A Dinit_syscalls.h6 int __init init_chdir(const char *filename);
7 int __init init_chroot(const char *filename);
8 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
9 int __init init_chmod(const char *filename, umode_t mode);
10 int __init init_eaccess(const char *filename);
11 int __init init_stat(const char *filename, struct kstat *stat, int flags);
12 int __init init_mknod(const char *filename, umode_t mode, unsigned int dev);
18 int __init init_utimes(char *filename, struct timespec64 *ts);
/linux/io_uring/
H A Dfs.c22 struct filename *oldpath;
23 struct filename *newpath;
31 struct filename *filename; member
38 struct filename *filename; member
45 struct filename *oldpath;
46 struct filename *newpath;
121 un->filename = getname(fname); in io_unlinkat_prep()
122 if (IS_ERR(un->filename)) in io_unlinkat_prep()
123 return PTR_ERR(un->filename); in io_unlinkat_prep()
138 ret = do_rmdir(un->dfd, un->filename); in io_unlinkat()
[all …]
H A Dstatx.c19 struct filename *filename; member
39 sx->filename = getname_flags(path, in io_statx_prep()
42 if (IS_ERR(sx->filename)) { in io_statx_prep()
43 int ret = PTR_ERR(sx->filename); in io_statx_prep()
45 sx->filename = NULL; in io_statx_prep()
61 ret = do_statx(sx->dfd, sx->filename, sx->flags, sx->mask, sx->buffer); in io_statx()
70 if (sx->filename) in io_statx_cleanup()
71 putname(sx->filename); in io_statx_cleanup()
H A Dxattr.c22 struct filename *filename; member
29 if (ix->filename) in io_xattr_cleanup()
30 putname(ix->filename); in io_xattr_cleanup()
54 ix->filename = NULL; in __io_getxattr_prep()
99 ix->filename = getname_flags(path, LOOKUP_FOLLOW); in io_getxattr_prep()
100 if (IS_ERR(ix->filename)) { in io_getxattr_prep()
101 ret = PTR_ERR(ix->filename); in io_getxattr_prep()
102 ix->filename = NULL; in io_getxattr_prep()
133 ret = filename_lookup(AT_FDCWD, ix->filename, lookup_flags, &path, NULL); in io_getxattr()
158 ix->filename = NULL; in __io_setxattr_prep()
[all …]
/linux/tools/testing/selftests/kvm/lib/
H A Delf.c15 static void elfhdr_get(const char *filename, Elf64_Ehdr *hdrp) in elfhdr_get() argument
21 fd = open(filename, O_RDONLY); in elfhdr_get()
24 " rv: %i errno: %i", filename, fd, errno); in elfhdr_get()
41 filename, in elfhdr_get()
49 filename, in elfhdr_get()
72 filename, ident[EI_VERSION], EV_CURRENT); in elfhdr_get()
114 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename) in kvm_vm_elf_load() argument
121 fd = open(filename, O_RDONLY); in kvm_vm_elf_load()
124 " rv: %i errno: %i", filename, fd, errno); in kvm_vm_elf_load()
127 elfhdr_get(filename, &hdr); in kvm_vm_elf_load()
[all …]
/linux/scripts/
H A 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}--;
H A 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/tools/perf/
H A Dbuiltin-buildid-cache.c118 static int build_id_cache__add_kcore(const char *filename, bool force) in build_id_cache__add_kcore() argument
124 strlcpy(from_dir, filename, sizeof(from_dir)); in build_id_cache__add_kcore()
175 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
183 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file()
186 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__add_file()
191 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
193 pr_debug("Adding %s %s: %s\n", sbuild_id, filename, in build_id_cache__add_file()
198 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
207 err = filename__read_build_id(filename, &bid); in build_id_cache__remove_file()
210 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__remove_file()
277 char filename[PATH_MAX]; dso__missing_buildid_cache() local
303 build_id_cache__update_file(const char * filename,struct nsinfo * nsi) build_id_cache__update_file() argument
[all...]
/linux/samples/bpf/
H A Dtest_overhead_user.c131 static int load_progs(char *filename) in load_progs() argument
136 obj = bpf_object__open_file(filename, NULL); in load_progs()
176 char filename[256]; in main() local
191 snprintf(filename, sizeof(filename), in main()
195 err = load_progs(filename); in main()
203 snprintf(filename, sizeof(filename), in main()
206 err = load_progs(filename); in main()
214 snprintf(filename, sizeof(filename), in main()
217 err = load_progs(filename); in main()
/linux/fs/
H A Dinit.c44 int __init init_chdir(const char *filename) in init_chdir() argument
49 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chdir()
59 int __init init_chroot(const char *filename) in init_chroot() argument
64 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chroot()
82 int __init init_chown(const char *filename, uid_t user, gid_t group, int flags) in init_chown() argument
88 error = kern_path(filename, lookup_flags, &path); in init_chown()
100 int __init init_chmod(const char *filename, umode_t mode) in init_chmod() argument
105 error = kern_path(filename, LOOKUP_FOLLOW, &path); in init_chmod()
113 int __init init_eaccess(const char *filename) in init_eaccess() argument
118 error = kern_path(filename, LOOKUP_FOLLOW, &path); in init_eaccess()
[all …]
H A Dexec.c129 struct filename *tmp = getname(library); in SYSCALL_DEFINE1()
884 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
931 struct filename *filename = getname_kernel(name); in open_exec() local
932 struct file *f = ERR_CAST(filename); in open_exec()
934 if (!IS_ERR(filename)) { in open_exec()
935 f = do_open_execat(AT_FDCWD, filename, 0); in open_exec()
936 putname(filename); in open_exec()
1350 __set_task_comm(me, kbasename(bprm->filename), true); in begin_new_exec()
1497 if (bprm->interp != bprm->filename) in free_bprm()
1503 static struct linux_binprm *alloc_bprm(int fd, struct filename *filename, int flags) in alloc_bprm() argument
[all …]
/linux/drivers/accessibility/speakup/
H A Dutils.h30 char filename[256]; variable
35 snprintf(filename, sizeof(filename), "%s/%s", dir_name, name); in open_input()
37 snprintf(filename, sizeof(filename), "%s", name); in open_input()
38 infile = fopen(filename, "r"); in open_input()
40 fprintf(stderr, "can't open %s\n", filename); in open_input()
50 fprintf(stderr, "error: file %s line %d\n", filename, lc); in oops()
/linux/tools/testing/selftests/splice/
H A Dshort_splice_read.sh73 filename="$1"
78 out=$("$DIR"/splice_read "$filename" "$bytes" | cat)
90 filename="$1"
92 echo " checking $filename ..." >&2
94 full=$(cat "$filename")
104 if ! do_splice "$filename" 4096 "$full" "full read" ; then
110 if ! do_splice "$filename" 2 "$two" "'$two'" ; then
/linux/tools/testing/selftests/mount/
H A Dnosymfollow-test.c40 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, in vmaybe_write_file() argument
55 fd = open(filename, O_WRONLY); in vmaybe_write_file()
59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
65 die("short write to %s\n", filename); in vmaybe_write_file()
68 filename, strerror(errno)); in vmaybe_write_file()
73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file()
76 static void maybe_write_file(char *filename, char *fmt, ...) in maybe_write_file() argument
81 vmaybe_write_file(true, filename, fmt, ap); in maybe_write_file()
85 static void write_file(char *filename, char *fmt, ...) in write_file() argument
90 vmaybe_write_file(false, filename, fmt, ap); in write_file()
/linux/tools/testing/selftests/resctrl/
H A Dcache.c104 static int print_results_cache(const char *filename, pid_t bm_pid, __u64 llc_value) in print_results_cache() argument
108 if (strcmp(filename, "stdio") == 0 || strcmp(filename, "stderr") == 0) { in print_results_cache()
111 fp = fopen(filename, "a"); in print_results_cache()
136 const char *filename, pid_t bm_pid) in perf_event_measure() argument
151 return print_results_cache(filename, bm_pid, pe_read->values[0].value); in perf_event_measure()
164 int measure_llc_resctrl(const char *filename, pid_t bm_pid) in measure_llc_resctrl() argument
173 return print_results_cache(filename, bm_pid, llc_occu_resc); in measure_llc_resctrl()

12345678910>>...19