3 dnl # kernel_write() which was introduced in 3.9 was updated to take
4 dnl # the offset as a pointer which is needed by vn_rdwr().
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_WRITE], [
7 ZFS_LINUX_TEST_SRC([kernel_write], [
10 struct file *file = NULL;
11 const void *buf = NULL;
16 ret = kernel_write(file, buf, count, pos);
20 AC_DEFUN([ZFS_AC_KERNEL_WRITE], [
21 AC_MSG_CHECKING([whether kernel_write() takes loff_t pointer])
22 ZFS_LINUX_TEST_RESULT([kernel_write], [
24 AC_DEFINE(HAVE_KERNEL_WRITE_PPOS, 1,
25 [kernel_write() take loff_t pointer])
33 dnl # kernel_read() which has existed for forever was updated to take
34 dnl # the offset as a pointer which is needed by vn_rdwr().
36 AC_DEFUN([ZFS_AC_KERNEL_SRC_READ], [
37 ZFS_LINUX_TEST_SRC([kernel_read], [
40 struct file *file = NULL;
46 ret = kernel_read(file, buf, count, pos);
50 AC_DEFUN([ZFS_AC_KERNEL_READ], [
51 AC_MSG_CHECKING([whether kernel_read() takes loff_t pointer])
52 ZFS_LINUX_TEST_RESULT([kernel_read], [
54 AC_DEFINE(HAVE_KERNEL_READ_PPOS, 1,
55 [kernel_read() take loff_t pointer])
61 AC_DEFUN([ZFS_AC_KERNEL_SRC_RW], [
62 ZFS_AC_KERNEL_SRC_WRITE
63 ZFS_AC_KERNEL_SRC_READ
66 AC_DEFUN([ZFS_AC_KERNEL_RW], [