FreeBSD ZFS
The Zettabyte File System

sys/vdev_disk.h

Go to the documentation of this file.
00001 /*
00002  * CDDL HEADER START
00003  *
00004  * The contents of this file are subject to the terms of the
00005  * Common Development and Distribution License (the "License").
00006  * You may not use this file except in compliance with the License.
00007  *
00008  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
00009  * or http://www.opensolaris.org/os/licensing.
00010  * See the License for the specific language governing permissions
00011  * and limitations under the License.
00012  *
00013  * When distributing Covered Code, include this CDDL HEADER in each
00014  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
00015  * If applicable, add the following below this CDDL HEADER, with the
00016  * fields enclosed by brackets "[]" replaced with your own identifying
00017  * information: Portions Copyright [yyyy] [name of copyright owner]
00018  *
00019  * CDDL HEADER END
00020  */
00021 /*
00022  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
00023  * Use is subject to license terms.
00024  */
00025 
00026 #ifndef _SYS_VDEV_DISK_H
00027 #define _SYS_VDEV_DISK_H
00028 
00029 #pragma ident   "%Z%%M% %I%     %E% SMI"
00030 
00031 #include <sys/vdev.h>
00032 #ifdef _KERNEL
00033 #include <sys/buf.h>
00034 #include <sys/ddi.h>
00035 #include <sys/sunldi.h>
00036 #include <sys/sunddi.h>
00037 #endif
00038 
00039 #ifdef  __cplusplus
00040 extern "C" {
00041 #endif
00042 
00043 typedef struct vdev_disk {
00044         ddi_devid_t     vd_devid;
00045         char            *vd_minor;
00046         ldi_handle_t    vd_lh;
00047 } vdev_disk_t;
00048 
00049 #ifdef _KERNEL
00050 extern int vdev_disk_physio(ldi_handle_t, caddr_t, size_t, uint64_t, int);
00051 #endif
00052 #ifdef  __cplusplus
00053 }
00054 #endif
00055 
00056 #endif  /* _SYS_VDEV_DISK_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines