1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/geom/geom.h 219970 2011-03-24 19:23:42Z mav $ |
36 */ 37 38#ifndef _GEOM_GEOM_H_ 39#define _GEOM_GEOM_H_ 40 41#include <sys/lock.h> 42#include <sys/mutex.h> 43#include <sys/sx.h> --- 159 unchanged lines hidden (view full) --- 203 * that are not previously classified. 204 */ 205struct g_classifier_hook { 206 TAILQ_ENTRY(g_classifier_hook) link; 207 int (*func)(void *arg, struct bio *bp); 208 void *arg; 209}; 210 |
211/* BIO_GETATTR("GEOM::setstate") argument values. */ 212#define G_STATE_FAILED 0 213#define G_STATE_REBUILD 1 214#define G_STATE_RESYNC 2 215#define G_STATE_ACTIVE 3 216 |
217/* geom_dev.c */ 218struct cdev; 219void g_dev_print(void); 220struct g_provider *g_dev_getprovider(struct cdev *dev); 221 222/* geom_dump.c */ 223void g_trace(int level, const char *, ...); 224# define G_T_TOPOLOGY 1 --- 162 unchanged lines hidden --- |