Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidump/
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 …]
/kernel/linux/linux-5.10/tools/iio/
Diio_utils.c93 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local
123 ret = asprintf(&filename, in iioutils_get_type()
130 sysfsfp = fopen(filename, "r"); in iioutils_get_type()
134 filename); in iioutils_get_type()
167 filename); in iioutils_get_type()
172 free(filename); in iioutils_get_type()
173 filename = 0; in iioutils_get_type()
189 if (filename) in iioutils_get_type()
190 free(filename); in iioutils_get_type()
224 char *filename = NULL; in iioutils_get_param_float() local
[all …]
Diio_utils.h71 int write_sysfs_int(const char *filename, const char *basedir, int val);
72 int write_sysfs_int_and_verify(const char *filename, const char *basedir,
74 int write_sysfs_string_and_verify(const char *filename, const char *basedir,
76 int write_sysfs_string(const char *filename, const char *basedir,
78 int read_sysfs_posint(const char *filename, const char *basedir);
79 int read_sysfs_float(const char *filename, const char *basedir, float *val);
80 int read_sysfs_string(const char *filename, const char *basedir, char *str);
/kernel/liteos_a/fs/vfs/operation/
Dfullpath.c146 static int vfs_normalize_path_parame_check(const char *filename, char **pathname) in vfs_normalize_path_parame_check() argument
157 if (filename == NULL) { in vfs_normalize_path_parame_check()
162 namelen = vfs_strnlen(filename, PATH_MAX); in vfs_normalize_path_parame_check()
171 for (name = (char *)filename + namelen; ((name != filename) && (*name != '/')); name--) { in vfs_normalize_path_parame_check()
181 static char *vfs_not_absolute_path(const char *directory, const char *filename, char **pathname, in… in vfs_not_absolute_path() argument
188 if ((namelen > 1) && (filename[0] == '.') && (filename[1] == '/')) { in vfs_not_absolute_path()
189 filename += 2; in vfs_not_absolute_path()
202 "%s/%s", directory, filename); in vfs_not_absolute_path()
213 static char *vfs_normalize_fullpath(const char *directory, const char *filename, char **pathname, i… in vfs_normalize_fullpath() argument
217 if (filename[0] != '/') { in vfs_normalize_fullpath()
[all …]
/kernel/liteos_m/components/shell/src/cmds/
Dfullpath.c135 STATIC INT32 VfsNormalizePathParameCheck(const CHAR *filename, CHAR **pathname) in VfsNormalizePathParameCheck() argument
146 if (filename == NULL) { in VfsNormalizePathParameCheck()
151 namelen = VfsStrnlen(filename, PATH_MAX); in VfsNormalizePathParameCheck()
160 for (name = (CHAR *)filename + namelen; ((name != filename) && (*name != '/')); name--) { in VfsNormalizePathParameCheck()
170 STATIC CHAR *VfsNotAbsolutePath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32… in VfsNotAbsolutePath() argument
177 if ((namelen > 1) && (filename[0] == '.') && (filename[1] == '/')) { in VfsNotAbsolutePath()
178 filename += 2; /* 2, size of "./" */ in VfsNotAbsolutePath()
190 "%s/%s", directory, filename); in VfsNotAbsolutePath()
201 STATIC CHAR *VfsNormalizeFullpath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT… in VfsNormalizeFullpath() argument
205 if (filename[0] != '/') { in VfsNormalizeFullpath()
[all …]
Dvfs_shellcmd.c221 const CHAR *filename = NULL; in OsShellCmdLs() local
235 filename = argv[0]; in OsShellCmdLs()
236 ret = VfsNormalizePath(shellWorkingDirectory, filename, &fullpath); in OsShellCmdLs()
309 const CHAR *filename = NULL; in OsShellCmdMkdir() local
317 filename = argv[0]; in OsShellCmdMkdir()
318 ret = VfsNormalizePath(shellWorkingDirectory, filename, &fullpath); in OsShellCmdMkdir()
356 const CHAR *filename = NULL; in OsShellCmdTouch() local
364 filename = argv[0]; in OsShellCmdTouch()
365 ret = VfsNormalizePath(shellWorkingDirectory, filename, &fullpath); in OsShellCmdTouch()
390 const CHAR *filename = NULL; in OsShellCmdDoCp() local
[all …]
/kernel/linux/linux-5.10/security/tomoyo/
Dutil.c146 static bool tomoyo_correct_path2(const char *filename, const size_t len);
250 char *filename; in tomoyo_parse_name_union() local
257 filename = tomoyo_read_token(param); in tomoyo_parse_name_union()
258 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union()
260 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
261 return ptr->filename != NULL; in tomoyo_parse_name_union()
526 static bool tomoyo_correct_path2(const char *filename, const size_t len) in tomoyo_correct_path2() argument
528 const char *cp1 = memchr(filename, '/', len); in tomoyo_correct_path2()
529 const char *cp2 = memchr(filename, '.', len); in tomoyo_correct_path2()
531 return cp1 && (!cp2 || (cp1 < cp2)) && tomoyo_correct_word2(filename, len); in tomoyo_correct_path2()
[all …]
/kernel/linux/linux-5.10/fs/
Dutimes.c78 static int do_utimes_path(int dfd, const char __user *filename, in do_utimes_path() argument
93 error = user_path_at(dfd, filename, lookup_flags, &path); in do_utimes_path()
138 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, in do_utimes() argument
141 if (filename == NULL && dfd != AT_FDCWD) in do_utimes()
143 return do_utimes_path(dfd, filename, times, flags); in do_utimes()
146 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE4() argument
162 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags); in SYSCALL_DEFINE4()
172 static long do_futimesat(int dfd, const char __user *filename, in do_futimesat() argument
197 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0); in do_futimesat()
201 SYSCALL_DEFINE3(futimesat, int, dfd, const char __user *, filename, in SYSCALL_DEFINE3() argument
[all …]
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 …]
Dopen.c397 static long do_faccessat(int dfd, const char __user *filename, int mode, int flags) in do_faccessat() argument
423 res = user_path_at(dfd, filename, lookup_flags, &path); in do_faccessat()
469 SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) in SYSCALL_DEFINE3() argument
471 return do_faccessat(dfd, filename, mode, 0); in SYSCALL_DEFINE3()
474 SYSCALL_DEFINE4(faccessat2, int, dfd, const char __user *, filename, int, mode, in SYSCALL_DEFINE4() argument
477 return do_faccessat(dfd, filename, mode, flags); in SYSCALL_DEFINE4()
480 SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) in SYSCALL_DEFINE2() argument
482 return do_faccessat(AT_FDCWD, filename, mode, 0); in SYSCALL_DEFINE2()
485 SYSCALL_DEFINE1(chdir, const char __user *, filename) in SYSCALL_DEFINE1() argument
491 error = user_path_at(AT_FDCWD, filename, lookup_flags, &path); in SYSCALL_DEFINE1()
[all …]
/kernel/linux/linux-5.10/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}--;
/kernel/liteos_a/fs/vfs/vfs_cmd/
Dvfs_shellcmd.c129 const char *filename = NULL; in osShellCmdLs() local
143 filename = argv[0]; in osShellCmdLs()
144 ret = vfs_normalize_path(shell_working_directory, filename, &fullpath); in osShellCmdLs()
303 const char *filename = NULL; in osShellCmdMount() local
322 filename = argv[2]; // 2: index of file path in osShellCmdMount()
323 ret = vfs_normalize_path(shell_working_directory, filename, &fullpath); in osShellCmdMount()
359 filename = argv[1]; in osShellCmdMount()
360 ret = vfs_normalize_path(shell_working_directory, filename, &fullpath); in osShellCmdMount()
407 const char *filename = NULL; in osShellCmdUmount() local
420 filename = argv[0]; in osShellCmdUmount()
[all …]
/kernel/linux/build/
Dkernel_build.py42 def normpath(self, filename): argument
43 if re.search("^[\.]+[^/]", filename):
44 filename = re.sub("^[\.]+", "", filename)
45 return os.path.normpath(filename)
55 def report_build_warning(self, filename, regex, details): argument
56 if len(details) == 0 or filename is None:
59 if not os.path.exists(os.path.join(self.path, filename)):
70 'title': self.format_title("%s: %s" % (filename, warning)),
71 'filename': filename,
83 filename = None
[all …]
/kernel/linux/linux-5.10/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.");
153 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument
157 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach()
158 if (filename == NULL) in simdisk_attach()
167 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach()
[all …]
/kernel/linux/linux-5.10/include/linux/
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);
/kernel/linux/linux-5.10/tools/power/cpupower/bench/
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 …]
/kernel/linux/linux-5.10/tools/perf/examples/bpf/
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)); \
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; \
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/
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
122 fd = open(filename, O_RDONLY); in kvm_vm_elf_load()
125 " rv: %i errno: %i", filename, fd, errno); in kvm_vm_elf_load()
128 elfhdr_get(filename, &hdr); in kvm_vm_elf_load()
[all …]
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-buildid-cache.c117 static int build_id_cache__add_kcore(const char *filename, bool force) in build_id_cache__add_kcore() argument
123 strlcpy(from_dir, filename, sizeof(from_dir)); in build_id_cache__add_kcore()
174 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
182 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file()
185 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__add_file()
190 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
192 pr_debug("Adding %s %s: %s\n", sbuild_id, filename, in build_id_cache__add_file()
197 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
206 err = filename__read_build_id(filename, &bid); in build_id_cache__remove_file()
209 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__remove_file()
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dtest_overhead_user.c129 char filename[256]; in main() local
146 snprintf(filename, sizeof(filename), in main()
148 if (load_bpf_file(filename)) { in main()
158 snprintf(filename, sizeof(filename), in main()
160 if (load_bpf_file(filename)) { in main()
170 snprintf(filename, sizeof(filename), in main()
172 if (load_bpf_file(filename)) { in main()
/kernel/linux/linux-5.10/security/integrity/ima/
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()
215 const char *filename = file->f_path.dentry->d_name.name; in ima_collect_measurement() local
275 filename, "collect_data", audit_cause, in ima_collect_measurement()
297 struct file *file, const unsigned char *filename, in ima_store_measurement() argument
309 .filename = filename, in ima_store_measurement()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/splice/
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
/kernel/linux/linux-5.10/tools/perf/util/
Dsrcline.c135 const char *filename; member
225 &a2l->filename, &a2l->funcname, in find_address_in_section()
228 if (a2l->filename && !strlen(a2l->filename)) in find_address_in_section()
229 a2l->filename = NULL; in find_address_in_section()
286 if (a2l->filename) in inline_list__append_dso_a2l()
287 srcline = srcline_from_fileline(a2l->filename, a2l->line); in inline_list__append_dso_a2l()
325 while (bfd_find_inliner_info(a2l->abfd, &a2l->filename, in addr2line()
329 if (a2l->filename && !strlen(a2l->filename)) in addr2line()
330 a2l->filename = NULL; in addr2line()
342 *file = a2l->filename ? strdup(a2l->filename) : NULL; in addr2line()
[all …]

12345678910>>...19