2 * Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
3 * Copyright (C) 2007 The Regents of the University of California.
4 * Copyright (c) 2015 by Chunwei Chen. All rights reserved.
5 * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
6 * Written by Brian Behlendorf <behlendorf1@llnl.gov>.
9 * This file is part of the SPL, Solaris Porting Layer.
10 * For details, see <http://zfsonlinux.org/>.
12 * The SPL is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version.
17 * The SPL is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * You should have received a copy of the GNU General Public License along
23 * with the SPL. If not, see <http://www.gnu.org/licenses/>.
29 #include <linux/uio.h>
30 #include <linux/blkdev.h>
31 #include <asm/uaccess.h>
32 #include <sys/types.h>
34 typedef struct iovec iovec_t
;
41 typedef enum uio_seg
{
50 const struct iovec
*uio_iov
;
51 const struct bio_vec
*uio_bvec
;
63 typedef struct aio_req
{
68 typedef enum xuio_type
{
74 #define UIOA_IOV_MAX 16
76 typedef struct uioa_page_s
{
85 enum xuio_type xu_type
;
90 uioa_page_t
*xu_a_lcur
;
93 uioa_page_t xu_a_locked
[UIOA_IOV_MAX
];
103 #define XUIO_XUZC_PRIV(xuio) xuio->xu_ext.xu_zc.xu_zc_priv
104 #define XUIO_XUZC_RW(xuio) xuio->xu_ext.xu_zc.xu_zc_rw
106 #endif /* SPL_UIO_H */