Lines Matching refs:fd
304 off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence) in ksys_lseek() argument
307 struct fd f = fdget_pos(fd); in ksys_lseek()
322 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) in SYSCALL_DEFINE3() argument
324 return ksys_lseek(fd, offset, whence); in SYSCALL_DEFINE3()
328 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) in COMPAT_SYSCALL_DEFINE3() argument
330 return ksys_lseek(fd, offset, whence); in COMPAT_SYSCALL_DEFINE3()
335 SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, in SYSCALL_DEFINE5() argument
340 struct fd f = fdget_pos(fd); in SYSCALL_DEFINE5()
579 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count) in ksys_read() argument
581 struct fd f = fdget_pos(fd); in ksys_read()
598 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) in SYSCALL_DEFINE3() argument
600 return ksys_read(fd, buf, count); in SYSCALL_DEFINE3()
603 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count) in ksys_write() argument
605 struct fd f = fdget_pos(fd); in ksys_write()
623 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE3() argument
626 return ksys_write(fd, buf, count); in SYSCALL_DEFINE3()
629 ssize_t ksys_pread64(unsigned int fd, char __user *buf, size_t count, in ksys_pread64() argument
632 struct fd f; in ksys_pread64()
638 f = fdget(fd); in ksys_pread64()
649 SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, in SYSCALL_DEFINE4() argument
652 return ksys_pread64(fd, buf, count, pos); in SYSCALL_DEFINE4()
655 ssize_t ksys_pwrite64(unsigned int fd, const char __user *buf, in ksys_pwrite64() argument
658 struct fd f; in ksys_pwrite64()
664 f = fdget(fd); in ksys_pwrite64()
675 SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE4() argument
678 return ksys_pwrite64(fd, buf, count, pos); in SYSCALL_DEFINE4()
1025 static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, in do_readv() argument
1028 struct fd f = fdget_pos(fd); in do_readv()
1049 static ssize_t do_writev(unsigned long fd, const struct iovec __user *vec, in do_writev() argument
1052 struct fd f = fdget_pos(fd); in do_writev()
1079 static ssize_t do_preadv(unsigned long fd, const struct iovec __user *vec, in do_preadv() argument
1082 struct fd f; in do_preadv()
1088 f = fdget(fd); in do_preadv()
1102 static ssize_t do_pwritev(unsigned long fd, const struct iovec __user *vec, in do_pwritev() argument
1105 struct fd f; in do_pwritev()
1111 f = fdget(fd); in do_pwritev()
1125 SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument
1128 return do_readv(fd, vec, vlen, 0); in SYSCALL_DEFINE3()
1131 SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument
1134 return do_writev(fd, vec, vlen, 0); in SYSCALL_DEFINE3()
1137 SYSCALL_DEFINE5(preadv, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE5() argument
1142 return do_preadv(fd, vec, vlen, pos, 0); in SYSCALL_DEFINE5()
1145 SYSCALL_DEFINE6(preadv2, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE6() argument
1152 return do_readv(fd, vec, vlen, flags); in SYSCALL_DEFINE6()
1154 return do_preadv(fd, vec, vlen, pos, flags); in SYSCALL_DEFINE6()
1157 SYSCALL_DEFINE5(pwritev, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE5() argument
1162 return do_pwritev(fd, vec, vlen, pos, 0); in SYSCALL_DEFINE5()
1165 SYSCALL_DEFINE6(pwritev2, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE6() argument
1172 return do_writev(fd, vec, vlen, flags); in SYSCALL_DEFINE6()
1174 return do_pwritev(fd, vec, vlen, pos, flags); in SYSCALL_DEFINE6()
1198 static size_t do_compat_readv(compat_ulong_t fd, in do_compat_readv() argument
1202 struct fd f = fdget_pos(fd); in do_compat_readv()
1217 COMPAT_SYSCALL_DEFINE3(readv, compat_ulong_t, fd, in COMPAT_SYSCALL_DEFINE3() argument
1221 return do_compat_readv(fd, vec, vlen, 0); in COMPAT_SYSCALL_DEFINE3()
1224 static long do_compat_preadv64(unsigned long fd, in do_compat_preadv64() argument
1228 struct fd f; in do_compat_preadv64()
1233 f = fdget(fd); in do_compat_preadv64()
1244 COMPAT_SYSCALL_DEFINE4(preadv64, unsigned long, fd, in COMPAT_SYSCALL_DEFINE4() argument
1248 return do_compat_preadv64(fd, vec, vlen, pos, 0); in COMPAT_SYSCALL_DEFINE4()
1252 COMPAT_SYSCALL_DEFINE5(preadv, compat_ulong_t, fd, in COMPAT_SYSCALL_DEFINE5() argument
1258 return do_compat_preadv64(fd, vec, vlen, pos, 0); in COMPAT_SYSCALL_DEFINE5()
1262 COMPAT_SYSCALL_DEFINE5(preadv64v2, unsigned long, fd, in COMPAT_SYSCALL_DEFINE5() argument
1267 return do_compat_readv(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE5()
1269 return do_compat_preadv64(fd, vec, vlen, pos, flags); in COMPAT_SYSCALL_DEFINE5()
1273 COMPAT_SYSCALL_DEFINE6(preadv2, compat_ulong_t, fd, in COMPAT_SYSCALL_DEFINE6() argument
1281 return do_compat_readv(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE6()
1283 return do_compat_preadv64(fd, vec, vlen, pos, flags); in COMPAT_SYSCALL_DEFINE6()
1308 static size_t do_compat_writev(compat_ulong_t fd, in do_compat_writev() argument
1312 struct fd f = fdget_pos(fd); in do_compat_writev()
1326 COMPAT_SYSCALL_DEFINE3(writev, compat_ulong_t, fd, in COMPAT_SYSCALL_DEFINE3() argument
1330 return do_compat_writev(fd, vec, vlen, 0); in COMPAT_SYSCALL_DEFINE3()
1333 static long do_compat_pwritev64(unsigned long fd, in do_compat_pwritev64() argument
1337 struct fd f; in do_compat_pwritev64()
1342 f = fdget(fd); in do_compat_pwritev64()
1353 COMPAT_SYSCALL_DEFINE4(pwritev64, unsigned long, fd, in COMPAT_SYSCALL_DEFINE4() argument
1357 return do_compat_pwritev64(fd, vec, vlen, pos, 0); in COMPAT_SYSCALL_DEFINE4()
1361 COMPAT_SYSCALL_DEFINE5(pwritev, compat_ulong_t, fd, in COMPAT_SYSCALL_DEFINE5() argument
1367 return do_compat_pwritev64(fd, vec, vlen, pos, 0); in COMPAT_SYSCALL_DEFINE5()
1371 COMPAT_SYSCALL_DEFINE5(pwritev64v2, unsigned long, fd, in COMPAT_SYSCALL_DEFINE5() argument
1376 return do_compat_writev(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE5()
1378 return do_compat_pwritev64(fd, vec, vlen, pos, flags); in COMPAT_SYSCALL_DEFINE5()
1382 COMPAT_SYSCALL_DEFINE6(pwritev2, compat_ulong_t, fd, in COMPAT_SYSCALL_DEFINE6() argument
1389 return do_compat_writev(fd, vec, vlen, flags); in COMPAT_SYSCALL_DEFINE6()
1391 return do_compat_pwritev64(fd, vec, vlen, pos, flags); in COMPAT_SYSCALL_DEFINE6()
1399 struct fd in, out; in do_sendfile()
1699 struct fd f_in; in SYSCALL_DEFINE6()
1700 struct fd f_out; in SYSCALL_DEFINE6()
2197 struct fd dst_fd = fdget(info->dest_fd); in vfs_dedupe_file_range()