diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-12-16 07:01:06 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-12-16 07:01:06 +0000 |
commit | 9f4f754a2c89fa0aae2495b9897832c871e55410 (patch) | |
tree | 990a42520130e4092662926e20b65536fa947a43 /sys/dev/raidframe/rf_dagflags.h | |
parent | d18f950d8b18360863af577de1796c0079f4bc20 (diff) |
Major KNF. Incentive from Tedu
Diffstat (limited to 'sys/dev/raidframe/rf_dagflags.h')
-rw-r--r-- | sys/dev/raidframe/rf_dagflags.h | 62 |
1 files changed, 39 insertions, 23 deletions
diff --git a/sys/dev/raidframe/rf_dagflags.h b/sys/dev/raidframe/rf_dagflags.h index a978088ce9f..29e2acb0141 100644 --- a/sys/dev/raidframe/rf_dagflags.h +++ b/sys/dev/raidframe/rf_dagflags.h @@ -1,5 +1,6 @@ -/* $OpenBSD: rf_dagflags.h,v 1.2 1999/02/16 00:02:31 niklas Exp $ */ +/* $OpenBSD: rf_dagflags.h,v 1.3 2002/12/16 07:01:03 tdeval Exp $ */ /* $NetBSD: rf_dagflags.h,v 1.3 1999/02/05 00:06:08 oster Exp $ */ + /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -27,17 +28,18 @@ * rights to redistribute these changes. */ -/************************************************************************************** +/***************************************************************************** * - * dagflags.h -- flags that can be given to DoAccess - * I pulled these out of dag.h because routines that call DoAccess may need these flags, - * but certainly do not need the declarations related to the DAG data structures. + * dagflags.h -- Flags that can be given to DoAccess. + * I pulled these out of dag.h because routines that call DoAccess may need + * these flags, but certainly do not need the declarations related to the DAG + * data structures. * - **************************************************************************************/ + *****************************************************************************/ -#ifndef _RF__RF_DAGFLAGS_H_ -#define _RF__RF_DAGFLAGS_H_ +#ifndef _RF__RF_DAGFLAGS_H_ +#define _RF__RF_DAGFLAGS_H_ /* * Bitmasks for the "flags" parameter (RF_RaidAccessFlags_t) used @@ -48,21 +50,35 @@ * specify USE_DAG. */ -#define RF_DAG_FLAGS_NONE 0 /* no flags */ -#define RF_DAG_SUPPRESS_LOCKS (1<<0) /* supress all stripe locks in - * the DAG */ -#define RF_DAG_RETURN_ASM (1<<1) /* create an ASM and return it - * instead of freeing it */ -#define RF_DAG_RETURN_DAG (1<<2) /* create a DAG and return it - * instead of freeing it */ -#define RF_DAG_NONBLOCKING_IO (1<<3) /* cause DoAccess to be - * non-blocking */ -#define RF_DAG_ACCESS_COMPLETE (1<<4) /* the access is complete */ -#define RF_DAG_DISPATCH_RETURNED (1<<5) /* used to handle the case +#define RF_DAG_FLAGS_NONE 0 /* No flags */ +#define RF_DAG_SUPPRESS_LOCKS (1<<0) /* + * Supress all stripe locks in + * the DAG. + */ +#define RF_DAG_RETURN_ASM (1<<1) /* + * Create an ASM and return it + * instead of freeing it. + */ +#define RF_DAG_RETURN_DAG (1<<2) /* + * Create a DAG and return it + * instead of freeing it. + */ +#define RF_DAG_NONBLOCKING_IO (1<<3) /* + * Cause DoAccess to be + * non-blocking. + */ +#define RF_DAG_ACCESS_COMPLETE (1<<4) /* + * The access is complete. + */ +#define RF_DAG_DISPATCH_RETURNED (1<<5) /* + * Used to handle the case * where the dag invokes no - * I/O */ -#define RF_DAG_TEST_ACCESS (1<<6) /* this access came through + * I/O. + */ +#define RF_DAG_TEST_ACCESS (1<<6) /* + * This access came through * rf_ioctl instead of - * rf_strategy */ + * rf_strategy. + */ -#endif /* !_RF__RF_DAGFLAGS_H_ */ +#endif /* !_RF__RF_DAGFLAGS_H_ */ |