Home
last modified time | relevance | path

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

12345678910>>...19

/linux/tools/iio/
A Diio_utils.c136 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()
270 if (filename) in iioutils_get_param_float()
271 free(filename); in iioutils_get_param_float()
324 char *filename; in build_channel_array() local
462 filename); in build_channel_array()
[all …]
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/
A Dapfiles.c106 char filename[ACPI_NAMESEG_SIZE + 16]; in ap_write_to_binary_file() local
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()
142 table->signature, filename, table->length, in ap_write_to_binary_file()
148 file = fopen(filename, "wb"); in ap_write_to_binary_file()
[all …]
/linux/security/tomoyo/
A Dutil.c250 char *filename; in tomoyo_parse_name_union() local
260 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
549 return tomoyo_correct_path2(filename, strlen(filename)); in tomoyo_correct_path()
640 if (!filename) in tomoyo_const_part_length()
647 c = *filename++; in tomoyo_const_part_length()
656 c = *filename++; in tomoyo_const_part_length()
659 c = *filename++; in tomoyo_const_part_length()
713 c = *filename; in tomoyo_file_matches_pattern2()
721 filename++; in tomoyo_file_matches_pattern2()
752 filename += 3; in tomoyo_file_matches_pattern2()
[all …]
/linux/fs/
A Dutimes.c142 if (filename == NULL && dfd != AT_FDCWD) in do_utimes()
144 return do_utimes_path(dfd, filename, times, flags); in do_utimes()
205 return do_futimesat(dfd, filename, utimes); in SYSCALL_DEFINE3()
208 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument
211 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2()
235 SYSCALL_DEFINE2(utime32, const char __user *, filename, in SYSCALL_DEFINE2() argument
263 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4()
284 return do_utimes(dfd, filename, t ? tv : NULL, 0); in do_compat_futimesat()
288 const char __user *, filename, in SYSCALL_DEFINE3() argument
291 return do_compat_futimesat(dfd, filename, t); in SYSCALL_DEFINE3()
[all …]
A Dinternal.h59 extern int filename_lookup(int dfd, struct filename *name, unsigned flags,
63 int do_rmdir(int dfd, struct filename *name);
64 int do_unlinkat(int dfd, struct filename *name);
66 int do_renameat2(int olddfd, struct filename *oldname, int newdfd,
67 struct filename *newname, unsigned int flags);
68 int do_mkdirat(int dfd, struct filename *name, umode_t mode);
69 int do_symlinkat(struct filename *from, int newdfd, struct filename *to);
70 int do_linkat(int olddfd, struct filename *old, int newdfd,
71 struct filename *new, int flags);
122 extern struct file *do_filp_open(int dfd, struct filename *pathname,
[all …]
A Dinit.c44 int __init init_chdir(const char *filename) in init_chdir() argument
59 int __init init_chroot(const char *filename) in init_chroot() 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()
132 error = kern_path(filename, lookup_flags, &path); in init_stat()
152 dentry = kern_path_create(AT_FDCWD, filename, &path, 0); in init_mknod()
247 int __init init_utimes(char *filename, struct timespec64 *ts) in init_utimes() argument
[all …]
A Dexec.c943 struct filename *filename = getname_kernel(name); in open_exec() local
1509 bprm->filename = filename->name; in alloc_bprm()
1796 int fd, struct filename *filename, int flags) in bprm_execve() argument
1862 static int do_execveat_common(int fd, struct filename *filename, in do_execveat_common() argument
1927 putname(filename); in do_execveat_common()
1934 struct filename *filename; in kernel_execve() local
1980 putname(filename); in kernel_execve()
1984 static int do_execve(struct filename *filename, in do_execve() argument
1993 static int do_execveat(int fd, struct filename *filename, in do_execveat() argument
2005 static int compat_do_execve(struct filename *filename, in compat_do_execve() argument
[all …]
A Dopen.c469 return do_faccessat(dfd, filename, mode, 0); in SYSCALL_DEFINE3()
475 return do_faccessat(dfd, filename, mode, flags); in SYSCALL_DEFINE4()
633 return do_fchmodat(dfd, filename, mode); in SYSCALL_DEFINE3()
638 return do_fchmodat(AT_FDCWD, filename, mode); in SYSCALL_DEFINE2()
1173 struct filename *name = getname_kernel(filename); in filp_open()
1192 return do_file_open_root(root, filename, &op); in file_open_root()
1201 struct filename *tmp; in do_sys_openat2()
1206 tmp = getname(filename); in do_sys_openat2()
1228 return do_sys_openat2(dfd, filename, &how); in do_sys_open()
1244 return do_sys_open(dfd, filename, flags, mode); in SYSCALL_DEFINE4()
[all …]
/linux/arch/xtensa/platforms/iss/
A Dsimdisk.c28 const char *filename; member
56 filename[n_files++] = val; in simdisk_param_set_filename()
155 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
156 if (filename == NULL) in simdisk_attach()
173 dev->filename = filename; in simdisk_attach()
177 kfree(filename); in simdisk_attach()
194 dev->filename, errno); in simdisk_detach()
200 kfree(dev->filename); in simdisk_detach()
201 dev->filename = NULL; in simdisk_detach()
264 dev->filename = NULL; in simdisk_setup()
[all …]
/linux/scripts/
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: " .
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);
148 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
[all …]
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}--;
/linux/tools/power/cpupower/bench/
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()
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()
103 fprintf(stdout, "Logfile: %s\n", filename); in prepare_output()
[all …]
/linux/tools/perf/
A Dbuiltin-buildid-cache.c124 strlcpy(from_dir, filename, sizeof(from_dir)); in build_id_cache__add_kcore()
183 err = filename__read_build_id(filename, &bid); 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()
207 err = filename__read_build_id(filename, &bid); in build_id_cache__remove_file()
277 char filename[PATH_MAX]; in dso__missing_buildid_cache() local
280 if (dso__build_id_filename(dso, filename, sizeof(filename), false) && in dso__missing_buildid_cache()
281 filename__read_build_id(filename, &bid) == -1) { in dso__missing_buildid_cache()
286 filename); in dso__missing_buildid_cache()
289 filename); in dso__missing_buildid_cache()
[all …]
/linux/include/linux/
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/tools/testing/selftests/kvm/lib/
A Delf.c16 static void elfhdr_get(const char *filename, Elf64_Ehdr *hdrp) in elfhdr_get() argument
22 fd = open(filename, O_RDONLY); in elfhdr_get()
25 " rv: %i errno: %i", filename, fd, errno); in elfhdr_get()
42 filename, in elfhdr_get()
50 filename, in elfhdr_get()
73 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/samples/bpf/
A Dtest_overhead_user.c122 static int load_progs(char *filename) in load_progs() argument
127 obj = bpf_object__open_file(filename, NULL); in load_progs()
167 char filename[256]; in main() local
182 snprintf(filename, sizeof(filename), in main()
186 err = load_progs(filename); in main()
194 snprintf(filename, sizeof(filename), in main()
197 err = load_progs(filename); in main()
205 snprintf(filename, sizeof(filename), in main()
208 err = load_progs(filename); in main()
/linux/tools/perf/examples/bpf/
A Detcsnoop.c36 struct augmented_filename filename; \
41 struct augmented_enter_##syscall##_args augmented_args = { .filename.reserved = 0, }; \
43 augmented_args.filename.size = probe_read_str(&augmented_args.filename.value, \
44 sizeof(augmented_args.filename.value), \
46 if (__builtin_memcmp(augmented_args.filename.value, etc, 4) != 0) \
51 (sizeof(augmented_args) - sizeof(augmented_args.filename.value) + \
52 augmented_args.filename.size)); \
A Daugmented_syscalls.c40 struct augmented_filename filename; \
44 struct augmented_enter_##syscall##_args augmented_args = { .filename.reserved = 0, }; \
47 augmented_args.filename.size = probe_read_str(&augmented_args.filename.value, \
48 sizeof(augmented_args.filename.value), \
50 if (augmented_args.filename.size < sizeof(augmented_args.filename.value)) { \
51 len -= sizeof(augmented_args.filename.value) - augmented_args.filename.size; \
52 len &= sizeof(augmented_args.filename.value) - 1; \
/linux/security/integrity/ima/
A Dima_api.c104 const unsigned char *filename, int pcr) in ima_store_template() 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()
219 const char *filename = file->f_path.dentry->d_name.name; in ima_collect_measurement() local
279 filename, "collect_data", audit_cause, in ima_collect_measurement()
301 struct file *file, const unsigned char *filename, in ima_store_measurement() argument
313 .filename = filename, in ima_store_measurement()
330 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_store_measurement()
345 const unsigned char *filename) in ima_audit_measurement() argument
[all …]
/linux/fs/ksmbd/
A Dmisc.c88 int ksmbd_validate_filename(char *filename) in ksmbd_validate_filename() argument
90 while (*filename) { in ksmbd_validate_filename()
91 char c = *filename; in ksmbd_validate_filename()
93 filename++; in ksmbd_validate_filename()
124 s_name = filename; in parse_stream_name()
125 filename = strsep(&s_name, ":"); in parse_stream_name()
126 ksmbd_debug(SMB, "filename : %s, streams : %s\n", filename, s_name); in parse_stream_name()
161 char *convert_to_nt_pathname(char *filename) in convert_to_nt_pathname() argument
165 if (strlen(filename) == 0) in convert_to_nt_pathname()
166 filename = "\\"; in convert_to_nt_pathname()
[all …]
/linux/scripts/mod/
A Dfile2alias.c399 static int do_hid_entry(const char *filename, in do_hid_entry() argument
441 static int do_pci_entry(const char *filename, in do_pci_entry() argument
485 filename, class_mask); in do_pci_entry()
497 static int do_ccw_entry(const char *filename, in do_ccw_entry() argument
520 static int do_ap_entry(const char *filename, in do_ap_entry() argument
530 static int do_css_entry(const char *filename, in do_css_entry() argument
565 static int do_acpi_entry(const char *filename, in do_acpi_entry() argument
856 static int do_ssb_entry(const char *filename, in do_ssb_entry() argument
1161 filename, id, mask); in do_amba_entry()
1373 *guid_string, filename); in do_wmi_entry()
[all …]
/linux/tools/testing/selftests/mount/
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/splice/
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/bpf/
A Dtest_bpftool_synctypes.py116 self.reader = open(self.filename, 'r')
283 filename = os.path.join(BPFTOOL_DIR, 'prog.c') variable in ProgFileExtractor
298 filename = os.path.join(BPFTOOL_DIR, 'map.c') variable in MapFileExtractor
310 filename = os.path.join(BPFTOOL_DIR, 'cgroup.c') variable in CgroupFileExtractor
319 filename = os.path.join(BPFTOOL_DIR, 'common.c') variable in CommonFileExtractor
343 filename = "" variable in GenericSourceExtractor
345 def __init__(self, filename): argument
346 self.filename = os.path.join(BPFTOOL_DIR, filename)
404 filename = "" variable in ManGenericExtractor
406 def __init__(self, filename): argument
[all …]

Completed in 60 milliseconds

12345678910>>...19