| /linux-6.15/arch/sparc/kernel/ |
| H A D | sys_sparc32.c | 65 struct compat_stat64 __user *statbuf) in cp_compat_stat64() argument 70 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64() 88 err |= put_user(0, &statbuf->__unused4); in cp_compat_stat64() 89 err |= put_user(0, &statbuf->__unused5); in cp_compat_stat64() 95 struct compat_stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 101 error = cp_compat_stat64(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2() 106 struct compat_stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 112 error = cp_compat_stat64(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2() 117 struct compat_stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 123 error = cp_compat_stat64(&stat, statbuf); in COMPAT_SYSCALL_DEFINE2() [all …]
|
| H A D | systbls.h | 60 struct compat_stat64 __user *statbuf); 62 struct compat_stat64 __user *statbuf); 64 struct compat_stat64 __user * statbuf); 67 struct compat_stat64 __user * statbuf, int flag); 97 struct compat_stat64 __user * statbuf); 100 struct compat_stat64 __user * statbuf,
|
| /linux-6.15/fs/ |
| H A D | stat.c | 431 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 444 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 453 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 506 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument 513 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2() 517 struct stat __user *, statbuf) in SYSCALL_DEFINE2() argument 526 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2() 539 return cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE4() 549 error = cp_new_stat(&stat, statbuf); in SYSCALL_DEFINE2() 652 struct stat64 __user *, statbuf) in SYSCALL_DEFINE2() argument [all …]
|
| /linux-6.15/tools/power/cpupower/utils/helpers/ |
| H A D | sysfs.c | 55 struct stat statbuf; in sysfs_is_cpu_online() local 59 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online() 67 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online() 108 struct stat statbuf; in sysfs_idlestate_file_exists() local 113 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists() 357 struct stat statbuf; in sysfs_get_idlestate_count() local 362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count() 369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
|
| /linux-6.15/tools/power/cpupower/lib/ |
| H A D | cpuidle.c | 34 struct stat statbuf; in cpuidle_state_file_exists() local 39 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists() 295 struct stat statbuf; in cpuidle_state_count() local 300 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 304 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 307 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
|
| H A D | cpupower.c | 83 struct stat statbuf; in cpupower_is_cpu_online() local 87 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online() 95 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
|
| H A D | powercap.c | 97 struct stat statbuf; in powercap_get_driver() local 99 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in powercap_get_driver()
|
| /linux-6.15/tools/testing/selftests/splice/ |
| H A D | splice_read.c | 32 struct stat statbuf; in main() local 34 if (fstat(fd, &statbuf) < 0) { in main() 39 if (statbuf.st_size > INT_MAX) { in main() 44 size = statbuf.st_size; in main()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | pinning.c | 37 struct stat statbuf = {}; in test_pinning() local 66 err = stat(pinpath, &statbuf); in test_pinning() 71 err = stat(nopinpath, &statbuf); in test_pinning() 77 err = stat(nopinpath2, &statbuf); in test_pinning() 152 err = stat(custpinpath, &statbuf); in test_pinning() 197 err = stat(nopinpath2, &statbuf); in test_pinning() 203 err = stat(pinpath, &statbuf); in test_pinning() 221 err = stat(custpinpath, &statbuf); in test_pinning() 266 err = stat(custpinpath, &statbuf); in test_pinning()
|
| H A D | link_pinning.c | 15 struct stat statbuf = {}; in test_link_pinning_subtest() local 36 err = stat(link_pin_path, &statbuf); in test_link_pinning_subtest()
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | sys_ia32.c | 165 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 171 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 176 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 181 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 186 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 191 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 197 struct stat64 __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 205 return cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE4()
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | compat_linux.c | 150 …_SYSCALL_DEFINE2(s390_stat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 155 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 159 …SYSCALL_DEFINE2(s390_lstat64, const char __user *, filename, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 164 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 168 COMPAT_SYSCALL_DEFINE2(s390_fstat64, unsigned int, fd, struct stat64_emu31 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 173 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 178 struct stat64_emu31 __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 186 return cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE4()
|
| H A D | compat_linux.h | 86 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 87 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 88 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf); 89 …at64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
|
| /linux-6.15/arch/arm/include/asm/ |
| H A D | syscalls.h | 16 struct oldabi_stat64 __user * statbuf); 18 struct oldabi_stat64 __user * statbuf); 20 struct oldabi_stat64 __user * statbuf); 23 struct oldabi_stat64 __user *statbuf,
|
| /linux-6.15/arch/arm/kernel/ |
| H A D | sys_oabi-compat.c | 122 struct oldabi_stat64 __user *statbuf) in cp_oldabi_stat64() argument 145 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_oldabi_stat64() 149 struct oldabi_stat64 __user * statbuf) in sys_oabi_stat64() argument 154 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_stat64() 159 struct oldabi_stat64 __user * statbuf) in sys_oabi_lstat64() argument 164 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_lstat64() 169 struct oldabi_stat64 __user * statbuf) in sys_oabi_fstat64() argument 174 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstat64() 180 struct oldabi_stat64 __user *statbuf, in sys_oabi_fstatat64() argument 189 return cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstatat64()
|
| /linux-6.15/tools/perf/util/ |
| H A D | util.c | 163 struct stat statbuf; in rm_rf_depth_pat() local 166 ret = lstat(path, &statbuf); in rm_rf_depth_pat() 171 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat() 193 ret = lstat(namebuf, &statbuf); in rm_rf_depth_pat() 199 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
|
| /linux-6.15/scripts/dtc/ |
| H A D | dtc.c | 136 struct stat statbuf; in guess_input_format() local 140 if (stat(fname, &statbuf) != 0) in guess_input_format() 143 if (S_ISDIR(statbuf.st_mode)) in guess_input_format() 146 if (!S_ISREG(statbuf.st_mode)) in guess_input_format()
|
| /linux-6.15/tools/testing/selftests/resctrl/ |
| H A D | resctrlfs.c | 819 struct stat statbuf; in resctrl_resource_exists() local 831 if (stat(res_path, &statbuf)) in resctrl_resource_exists() 877 struct stat statbuf; in resource_info_file_exists() local 885 if (stat(res_path, &statbuf)) in resource_info_file_exists() 971 struct stat statbuf; in snc_kernel_support() local 987 if (!stat(node_path, &statbuf)) in snc_kernel_support()
|
| /linux-6.15/tools/power/cpupower/utils/ |
| H A D | cpupower.c | 179 struct stat statbuf; in main() local 220 stat(pathname, &statbuf) != 0) { in main()
|
| /linux-6.15/samples/landlock/ |
| H A D | sandboxer.c | 148 struct stat statbuf; in populate_ruleset_fs() local 156 if (fstat(path_beneath.parent_fd, &statbuf)) { in populate_ruleset_fs() 163 if (!S_ISDIR(statbuf.st_mode)) in populate_ruleset_fs()
|
| /linux-6.15/arch/um/drivers/ |
| H A D | vector_user.c | 900 struct stat statbuf; in uml_vector_user_bpf() local 906 if (stat(filename, &statbuf) < 0) { in uml_vector_user_bpf() 915 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf() 922 bpf = uml_kmalloc(statbuf.st_size, UM_GFP_KERNEL); in uml_vector_user_bpf() 928 res = os_read_file(ffd, bpf, statbuf.st_size); in uml_vector_user_bpf() 929 if (res < statbuf.st_size) { in uml_vector_user_bpf()
|
| /linux-6.15/tools/testing/selftests/kvm/lib/ |
| H A D | test_util.c | 138 struct stat statbuf; in thp_configured() local 140 ret = stat("/sys/kernel/mm/transparent_hugepage", &statbuf); in thp_configured()
|
| /linux-6.15/include/linux/ |
| H A D | syscalls.h | 516 struct stat __user *statbuf, int flag); 517 asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf); 519 asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf); 521 struct stat64 __user *statbuf, int flag); 1043 struct stat64 __user *statbuf); 1045 struct stat64 __user *statbuf); 1060 struct stat __user *statbuf); 1062 struct stat __user *statbuf); 1174 struct __old_kernel_stat __user *statbuf); 1176 struct __old_kernel_stat __user *statbuf); [all …]
|
| H A D | compat.h | 666 struct compat_stat __user *statbuf, 669 struct compat_stat __user *statbuf); 822 struct compat_stat __user *statbuf); 824 struct compat_stat __user *statbuf);
|
| /linux-6.15/tools/perf/bench/ |
| H A D | numa.c | 552 struct stat statbuf; in is_cpu_online() local 556 if (stat(buf, &statbuf) != 0) in is_cpu_online() 568 if (stat(buf, &statbuf) != 0) in is_cpu_online()
|