| /Linux-v5.4/arch/sparc/kernel/ |
| D | sys_sparc32.c | 66 struct compat_stat64 __user *statbuf) in cp_compat_stat64() argument 70 err = put_user(huge_encode_dev(stat->dev), &statbuf->st_dev); in cp_compat_stat64() 71 err |= put_user(stat->ino, &statbuf->st_ino); in cp_compat_stat64() 72 err |= put_user(stat->mode, &statbuf->st_mode); in cp_compat_stat64() 73 err |= put_user(stat->nlink, &statbuf->st_nlink); in cp_compat_stat64() 74 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 75 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64() 76 err |= put_user(huge_encode_dev(stat->rdev), &statbuf->st_rdev); in cp_compat_stat64() 77 err |= put_user(0, (unsigned long __user *) &statbuf->__pad3[0]); in cp_compat_stat64() 78 err |= put_user(stat->size, &statbuf->st_size); in cp_compat_stat64() [all …]
|
| 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-v5.4/fs/ |
| D | stat.c | 209 static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * statbuf) in cp_old_stat() argument 243 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_old_stat() 247 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 256 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 260 struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 269 return cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 272 SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, statbuf) in SYSCALL_DEFINE2() argument 278 error = cp_old_stat(&stat, statbuf); in SYSCALL_DEFINE2() 300 static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf) in cp_new_stat() argument 334 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_new_stat() [all …]
|
| /Linux-v5.4/tools/power/cpupower/utils/helpers/ |
| 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-v5.4/tools/power/cpupower/lib/ |
| D | cpuidle.c | 34 struct stat statbuf; in cpuidle_state_file_exists() local 39 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists() 287 struct stat statbuf; in cpuidle_state_count() local 292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count() 299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
|
| D | cpupower.c | 54 struct stat statbuf; in cpupower_is_cpu_online() local 58 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online() 66 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
|
| /Linux-v5.4/arch/x86/ia32/ |
| D | sys_ia32.c | 101 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 107 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 112 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 117 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 122 struct stat64 __user *, statbuf) in COMPAT_SYSCALL_DEFINE2() argument 127 ret = cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE2() 133 struct stat64 __user *, statbuf, int, flag) in COMPAT_SYSCALL_DEFINE4() argument 141 return cp_stat64(statbuf, &stat); in COMPAT_SYSCALL_DEFINE4()
|
| /Linux-v5.4/arch/s390/kernel/ |
| 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()
|
| D | compat_linux.h | 115 long compat_sys_s390_stat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 116 long compat_sys_s390_lstat64(const char __user *filename, struct stat64_emu31 __user *statbuf); 117 long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbuf); 118 …at64(unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag);
|
| /Linux-v5.4/arch/arm/kernel/ |
| D | sys_oabi-compat.c | 116 struct oldabi_stat64 __user *statbuf) in cp_oldabi_stat64() argument 139 return copy_to_user(statbuf,&tmp,sizeof(tmp)) ? -EFAULT : 0; in cp_oldabi_stat64() 143 struct oldabi_stat64 __user * statbuf) in sys_oabi_stat64() argument 148 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_stat64() 153 struct oldabi_stat64 __user * statbuf) in sys_oabi_lstat64() argument 158 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_lstat64() 163 struct oldabi_stat64 __user * statbuf) in sys_oabi_fstat64() argument 168 error = cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstat64() 174 struct oldabi_stat64 __user *statbuf, in sys_oabi_fstatat64() argument 183 return cp_oldabi_stat64(&stat, statbuf); in sys_oabi_fstatat64()
|
| /Linux-v5.4/tools/perf/util/ |
| D | util.c | 136 struct stat statbuf; in rm_rf_depth_pat() local 139 ret = lstat(path, &statbuf); in rm_rf_depth_pat() 144 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat() 166 ret = lstat(namebuf, &statbuf); in rm_rf_depth_pat() 172 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
|
| /Linux-v5.4/scripts/dtc/ |
| D | dtc.c | 132 struct stat statbuf; in guess_input_format() local 136 if (stat(fname, &statbuf) != 0) in guess_input_format() 139 if (S_ISDIR(statbuf.st_mode)) in guess_input_format() 142 if (!S_ISREG(statbuf.st_mode)) in guess_input_format()
|
| /Linux-v5.4/tools/perf/examples/bpf/ |
| D | augmented_syscalls.c | 94 struct statbuf; 100 struct stat *statbuf; member
|
| /Linux-v5.4/tools/power/cpupower/utils/ |
| D | cpupower.c | 176 struct stat statbuf; in main() local 215 stat(pathname, &statbuf) != 0) { in main()
|
| /Linux-v5.4/include/linux/ |
| D | syscalls.h | 514 struct stat __user *statbuf, int flag); 515 asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf); 517 asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf); 519 struct stat64 __user *statbuf, int flag); 1053 struct stat64 __user *statbuf); 1055 struct stat64 __user *statbuf); 1070 struct stat __user *statbuf); 1072 struct stat __user *statbuf); 1186 struct __old_kernel_stat __user *statbuf); 1188 struct __old_kernel_stat __user *statbuf); [all …]
|
| D | compat.h | 647 struct compat_stat __user *statbuf, 650 struct compat_stat __user *statbuf); 877 struct compat_stat __user *statbuf); 879 struct compat_stat __user *statbuf);
|
| /Linux-v5.4/drivers/net/ethernet/dec/tulip/ |
| D | de4x5.c | 5417 struct pkt_stats statbuf; in de4x5_ioctl() local 5418 ioc->len = sizeof(statbuf); in de4x5_ioctl() 5420 memcpy(&statbuf, &lp->pktStats, ioc->len); in de4x5_ioctl() 5422 if (copy_to_user(ioc->data, &statbuf, ioc->len)) in de4x5_ioctl()
|