/linux-master/arch/um/kernel/ |
H A D | load_file.c | 10 static int __init __uml_load_file(const char *filename, void *buf, int size) argument 14 fd = os_open_file(filename, of_read(OPENFLAGS()), 0); 16 printk(KERN_ERR "Opening '%s' failed - err = %d\n", filename, 24 filename, -n); 32 void *uml_load_file(const char *filename, unsigned long long *size) argument 39 if (!filename) 42 err = os_file_size(filename, size); 47 printk(KERN_ERR "\"%s\" is empty\n", filename); 55 if (__uml_load_file(filename, area, *size)) {
|
H A D | um_arch.h | 6 extern void * __init uml_load_file(const char *filename, unsigned long long *size);
|
/linux-master/scripts/ |
H A D | checkincludes.pl | 60 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 D | headerdep.pl | 63 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-master/tools/perf/util/ |
H A D | jit.h | 8 struct machine *machine, char *filename, pid_t pid, pid_t tid, u64 *nbytes); 10 int jit_inject_record(const char *filename);
|
H A D | vdso.h | 15 static inline bool is_vdso_map(const char *filename) argument 17 return !strcmp(filename, VDSO__MAP_NAME);
|
/linux-master/include/linux/ |
H A D | init_syscalls.h | 6 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-master/tools/power/acpi/tools/acpidump/ |
H A D | apfiles.c | 20 * PARAMETERS: pathname - Output filename 56 * PARAMETERS: pathname - Output filename 100 * filename from the table signature. 106 char filename[ACPI_NAMESEG_SIZE + 16]; local 116 /* Construct lower-case filename from the table local signature */ 119 ACPI_COPY_NAMESEG(filename, ACPI_RSDP_NAME); 121 ACPI_COPY_NAMESEG(filename, table->signature); 124 filename[0] = (char)tolower((int)filename[0]); 125 filename[ [all...] |
/linux-master/tools/hv/ |
H A D | hv_set_ifconfig.sh | 86 filename="${2##*/}" 88 sed '/\[connection\]/a autoconnect=true' $2 > /etc/NetworkManager/system-connections/${filename}
|
/linux-master/tools/lib/api/fs/ |
H A D | fs.h | 45 int filename__read_int(const char *filename, int *value); 46 int filename__read_ull(const char *filename, unsigned long long *value); 47 int filename__read_xll(const char *filename, unsigned long long *value); 48 int filename__read_str(const char *filename, char **buf, size_t *sizep); 50 int filename__write_int(const char *filename, int value);
|
/linux-master/tools/iio/ |
H A D | iio_utils.h | 68 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);
|
H A D | iio_utils.c | 95 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; local 125 ret = asprintf(&filename, 132 sysfsfp = fopen(filename, "r"); 136 filename); 169 filename); 174 free(filename); 175 filename = 0; 191 if (filename) 192 free(filename); 226 char *filename local 325 char *filename; local 568 char *filename; local 652 _write_sysfs_int(const char *filename, const char *basedir, int val, int verify) argument 729 write_sysfs_int(const char *filename, const char *basedir, int val) argument 743 write_sysfs_int_and_verify(const char *filename, const char *basedir, int val) argument 749 _write_sysfs_string(const char *filename, const char *basedir, const char *val, int verify) argument 829 write_sysfs_string_and_verify(const char *filename, const char *basedir, const char *val) argument 843 write_sysfs_string(const char *filename, const char *basedir, const char *val) argument 857 read_sysfs_posint(const char *filename, const char *basedir) argument 904 read_sysfs_float(const char *filename, const char *basedir, float *val) argument 951 read_sysfs_string(const char *filename, const char *basedir, char *str) argument [all...] |
/linux-master/tools/testing/selftests/splice/ |
H A D | short_splice_read.sh | 73 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-master/io_uring/ |
H A D | statx.c | 19 struct filename *filename; member in struct:io_statx 39 sx->filename = getname_flags(path, 43 if (IS_ERR(sx->filename)) { 44 int ret = PTR_ERR(sx->filename); 46 sx->filename = NULL; 62 ret = do_statx(sx->dfd, sx->filename, sx->flags, sx->mask, sx->buffer); 71 if (sx->filename) 72 putname(sx->filename);
|
/linux-master/fs/ |
H A D | utimes.c | 80 static int do_utimes_path(int dfd, const char __user *filename, argument 95 error = user_path_at(dfd, filename, lookup_flags, &path); 126 * do_utimes - change times on filename or file descriptor 128 * @filename: path name or NULL 132 * If filename is NULL and dfd refers to an open file, then operate on 133 * the file. Otherwise look up filename, possibly using dfd as a 140 long do_utimes(int dfd, const char __user *filename, struct timespec64 *times, argument 143 if (filename == NULL && dfd != AT_FDCWD) 145 return do_utimes_path(dfd, filename, times, flags); 148 SYSCALL_DEFINE4(utimensat, int, dfd, const char __user *, filename, 174 do_futimesat(int dfd, const char __user *filename, struct __kernel_old_timeval __user *utimes) argument 268 do_compat_futimesat(unsigned int dfd, const char __user *filename, struct old_timeval32 __user *t) argument [all...] |
/linux-master/scripts/gdb/linux/ |
H A D | config.py | 12 """Output kernel config to the filename specified as the command 22 filename = "config.txt" 24 filename = arg 38 with open(filename, 'wb') as f: 41 gdb.write("Dumped config to " + filename + "\n")
|
/linux-master/samples/bpf/ |
H A D | tracex7_user.c | 12 char filename[256]; local 22 snprintf(filename, sizeof(filename), "%s.bpf.o", argv[0]); 23 obj = bpf_object__open_file(filename, NULL);
|
H A D | tracex1_user.c | 12 char filename[256]; local 15 snprintf(filename, sizeof(filename), "%s.bpf.o", argv[0]); 16 obj = bpf_object__open_file(filename, NULL);
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | elf.c | 15 static void elfhdr_get(const char *filename, Elf64_Ehdr *hdrp) argument 21 fd = open(filename, O_RDONLY); 23 " filename: %s\n" 24 " rv: %i errno: %i", filename, fd, errno); 38 " filename: %s\n" 41 filename, 46 " filename: %s\n" 49 filename, 69 " filename: %s\n" 72 filename, iden 114 kvm_vm_elf_load(struct kvm_vm *vm, const char *filename) argument [all...] |
/linux-master/drivers/accessibility/speakup/ |
H A D | utils.h | 30 char filename[256]; variable 35 snprintf(filename, sizeof(filename), "%s/%s", dir_name, name); 37 snprintf(filename, sizeof(filename), "%s", name); 38 infile = fopen(filename, "r"); 40 fprintf(stderr, "can't open %s\n", filename); 50 fprintf(stderr, "error: file %s line %d\n", filename, lc);
|
/linux-master/tools/perf/tests/ |
H A D | symbols.c | 68 static void get_test_dso_filename(char *filename, size_t max_sz) argument 71 strlcpy(filename, dso_to_test, max_sz); 73 perf_exe(filename, max_sz); 76 static int create_map(struct test_info *ti, char *filename, struct map **map_p) argument 78 struct dso *dso = machine__findnew_dso(ti->machine, filename); 81 * If 'filename' matches a current kernel module, must use a kernel 89 filename); 100 PROT_EXEC, 0, NULL, filename, ti->thread); 164 static int test_file(struct test_info *ti, char *filename) argument 170 pr_debug("Testing %s\n", filename); 203 char filename[PATH_MAX]; local [all...] |
/linux-master/tools/power/cpupower/bench/ |
H A D | parse.c | 55 char *filename, *filename_tmp; local 70 filename = malloc(sizeof(char) * len); 71 if (!filename) { 78 filename_tmp = realloc(filename, sizeof(*filename) * len); 81 free(filename); 86 filename = filename_tmp; 87 snprintf(filename, len - 1, "%s/benchmark_%s_%s_%li.log", 90 snprintf(filename, len - 1, "%s/benchmark_%li.log", 94 dprintf("logfilename: %s\n", filename); [all...] |
/linux-master/security/tomoyo/ |
H A D | util.c | 146 static bool tomoyo_correct_path2(const char *filename, const size_t len); 250 char *filename; local 257 filename = tomoyo_read_token(param); 258 if (!tomoyo_correct_word(filename)) 260 ptr->filename = tomoyo_get_name(filename); 261 return ptr->filename != NULL; 526 * @filename: The pathname to check. 527 * @len: Length of @filename. 529 * Returns true if @filename follow 531 tomoyo_correct_path2(const char *filename, const size_t len) argument 547 tomoyo_correct_path(const char *filename) argument 635 tomoyo_const_part_length(const char *filename) argument 698 tomoyo_file_matches_pattern2(const char *filename, const char *filename_end, const char *pattern, const char *pattern_end) argument 817 tomoyo_file_matches_pattern(const char *filename, const char *filename_end, const char *pattern, const char *pattern_end) argument 937 tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, const struct tomoyo_path_info *pattern) argument [all...] |
/linux-master/arch/xtensa/platforms/iss/ |
H A D | simdisk.c | 28 const char *filename; member in struct:simdisk 43 static const char *filename[MAX_SIMDISK_COUNT] = { variable 55 if (n_files < ARRAY_SIZE(filename)) 56 filename[n_files++] = val; 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) argument 155 filename = kstrdup(filename, GFP_KERNE [all...] |
/linux-master/usr/include/ |
H A D | headers_check.pl | 31 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) [all...] |