Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.15/tools/power/acpi/tools/acpidump/
H 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-6.15/tools/iio/
H 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()
271 if (filename) in iioutils_get_param_float()
272 free(filename); in iioutils_get_param_float()
325 char *filename; in build_channel_array() local
349 free(filename); in build_channel_array()
[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-6.15/security/tomoyo/
H 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-6.15/fs/
H A Dutimes.c138 if (filename == NULL && dfd != AT_FDCWD) in do_utimes()
140 return do_utimes_path(dfd, filename, times, flags); in do_utimes()
201 return do_futimesat(dfd, filename, utimes); in SYSCALL_DEFINE3()
204 SYSCALL_DEFINE2(utimes, char __user *, filename, in SYSCALL_DEFINE2() argument
207 return do_futimesat(AT_FDCWD, filename, utimes); in SYSCALL_DEFINE2()
231 SYSCALL_DEFINE2(utime32, const char __user *, filename, in SYSCALL_DEFINE2() argument
259 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4()
280 return do_utimes(dfd, filename, t ? tv : NULL, 0); in do_compat_futimesat()
284 const char __user *, filename, in SYSCALL_DEFINE3() argument
287 return do_compat_futimesat(dfd, filename, t); in SYSCALL_DEFINE3()
[all …]
H A Dinternal.h57 int do_rmdir(int dfd, struct filename *name);
58 int do_unlinkat(int dfd, struct filename *name);
60 int do_renameat2(int olddfd, struct filename *oldname, int newdfd,
61 struct filename *newname, unsigned int flags);
62 int do_mkdirat(int dfd, struct filename *name, umode_t mode);
63 int do_symlinkat(struct filename *from, int newdfd, struct filename *to);
64 int do_linkat(int olddfd, struct filename *old, int newdfd,
65 struct filename *new, int flags);
251 int do_statx(int dfd, struct filename *filename, unsigned int flags,
285 ssize_t filename_getxattr(int dfd, struct filename *filename,
[all …]
H 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()
248 int __init init_utimes(char *filename, struct timespec64 *ts) in init_utimes() argument
[all …]
H A Dexec.c926 struct filename *filename = getname_kernel(name); in open_exec() local
931 putname(filename); in open_exec()
1531 bprm->filename = filename->name; in alloc_bprm()
1892 static int do_execveat_common(int fd, struct filename *filename, in do_execveat_common() argument
1973 putname(filename); in do_execveat_common()
1980 struct filename *filename; in kernel_execve() local
2032 putname(filename); in kernel_execve()
2036 static int do_execve(struct filename *filename, in do_execve() argument
2045 static int do_execveat(int fd, struct filename *filename, in do_execveat() argument
2057 static int compat_do_execve(struct filename *filename, in compat_do_execve() argument
[all …]
/linux-6.15/tools/net/sunrpc/xdrgen/generators/
H A Dheader_top.py22 def emit_declaration(self, filename: str, root: Specification) -> None:
27 infix=header_guard_infix(filename),
28 filename=filename,
29 mtime=time.ctime(os.path.getmtime(filename)),
33 def emit_definition(self, filename: str, root: Specification) -> None:
38 infix=header_guard_infix(filename),
39 filename=filename,
40 mtime=time.ctime(os.path.getmtime(filename)),
44 def emit_source(self, filename: str, root: Specification) -> None:
/linux-6.15/usr/include/
H A Dheaders_check.pl30 my $filename;
33 $filename = $file;
35 open(my $fh, '<', $filename)
36 or die "$filename: $!\n";
57 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n";
74 printf STDERR "$filename:$lineno: " .
90 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
100 printf STDERR "$filename:$lineno: " .
115 my @file_paths = ($path, $dir . "/" . $path, dirname($filename) . "/" . $path);
143 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
[all …]
/linux-6.15/arch/xtensa/platforms/iss/
H A Dsimdisk.c29 const char *filename; member
57 filename[n_files++] = val; in simdisk_param_set_filename()
156 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
157 if (filename == NULL) in simdisk_attach()
174 dev->filename = filename; in simdisk_attach()
178 kfree(filename); in simdisk_attach()
195 dev->filename, errno); in simdisk_detach()
201 kfree(dev->filename); in simdisk_detach()
202 dev->filename = NULL; in simdisk_detach()
274 dev->filename = NULL; in simdisk_setup()
[all …]
/linux-6.15/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()
53 if (__uml_load_file(filename, area, *size)) { in uml_load_file()
/linux-6.15/tools/perf/tests/
H A Dsymbols.c71 strlcpy(filename, dso_to_test, max_sz); in get_test_dso_filename()
73 perf_exe(filename, max_sz); in get_test_dso_filename()
78 struct dso *dso = machine__findnew_dso(ti->machine, filename); 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()
172 ret = create_map(ti, filename, &map); in test_file()
203 char filename[PATH_MAX]; in test__symbols() local
211 get_test_dso_filename(filename, sizeof(filename)); in test__symbols()
[all …]
/linux-6.15/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-6.15/security/integrity/ima/
H A Dima_api.c141 .filename = filename, in ima_add_violation()
155 filename, CONFIG_IMA_MEASURE_PCR_IDX); in ima_add_violation()
251 struct name_snapshot filename; in ima_collect_measurement() local
325 filename.name.name, "collect_data", in ima_collect_measurement()
328 release_dentry_name_snapshot(&filename); in ima_collect_measurement()
349 const unsigned char *filename, in ima_store_measurement() argument
361 .filename = filename, in ima_store_measurement()
393 const unsigned char *filename) in ima_audit_measurement() argument
417 audit_log_untrustedstring(ab, filename); in ima_audit_measurement()
441 struct name_snapshot filename; in ima_d_path() local
[all …]
/linux-6.15/io_uring/
H A Dxattr.c22 struct filename *filename; member
29 if (ix->filename) in io_xattr_cleanup()
30 putname(ix->filename); in io_xattr_cleanup()
51 ix->filename = NULL; in __io_getxattr_prep()
96 ix->filename = getname(path); in io_getxattr_prep()
97 if (IS_ERR(ix->filename)) in io_getxattr_prep()
98 return PTR_ERR(ix->filename); in io_getxattr_prep()
123 ix->filename = NULL; in io_getxattr()
135 ix->filename = NULL; in __io_setxattr_prep()
173 if (IS_ERR(ix->filename)) in io_setxattr_prep()
[all …]
H A Dstatx.c19 struct filename *filename; member
39 sx->filename = getname_uflags(path, sx->flags); in io_statx_prep()
41 if (IS_ERR(sx->filename)) { in io_statx_prep()
42 int ret = PTR_ERR(sx->filename); in io_statx_prep()
44 sx->filename = NULL; in io_statx_prep()
60 ret = do_statx(sx->dfd, sx->filename, sx->flags, sx->mask, sx->buffer); in io_statx()
69 if (sx->filename) in io_statx_cleanup()
70 putname(sx->filename); in io_statx_cleanup()
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()
151 putname(ul->filename); in io_unlinkat_cleanup()
169 if (IS_ERR(mkd->filename)) in io_mkdirat_prep()
[all …]
/linux-6.15/tools/power/cpupower/bench/
H A Dparse.c56 char *filename, *filename_tmp; in prepare_output() local
71 filename = malloc(sizeof(char) * len); in prepare_output()
72 if (!filename) { in prepare_output()
79 filename_tmp = realloc(filename, sizeof(*filename) * len); in prepare_output()
82 free(filename); in prepare_output()
87 filename = filename_tmp; in prepare_output()
91 snprintf(filename, len - 1, "%s/benchmark_%li.log", in prepare_output()
95 dprintf("logfilename: %s\n", filename); in prepare_output()
97 output = fopen(filename, "w+"); in prepare_output()
104 fprintf(stdout, "Logfile: %s\n", filename); in prepare_output()
[all …]
/linux-6.15/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}--;
/linux-6.15/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-6.15/tools/perf/
H 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()
283 if (filename__read_build_id(filename, &bid) == -1) { in dso__missing_buildid_cache()
288 filename); in dso__missing_buildid_cache()
291 filename); in dso__missing_buildid_cache()
[all …]
/linux-6.15/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-6.15/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-6.15/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()

12345678910>>...23