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_callback.h | |
parent | d18f950d8b18360863af577de1796c0079f4bc20 (diff) |
Major KNF. Incentive from Tedu
Diffstat (limited to 'sys/dev/raidframe/rf_callback.h')
-rw-r--r-- | sys/dev/raidframe/rf_callback.h | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/sys/dev/raidframe/rf_callback.h b/sys/dev/raidframe/rf_callback.h index 528eed625b9..b0ac8830ce1 100644 --- a/sys/dev/raidframe/rf_callback.h +++ b/sys/dev/raidframe/rf_callback.h @@ -1,5 +1,6 @@ -/* $OpenBSD: rf_callback.h,v 1.2 1999/02/16 00:02:24 niklas Exp $ */ +/* $OpenBSD: rf_callback.h,v 1.3 2002/12/16 07:01:03 tdeval Exp $ */ /* $NetBSD: rf_callback.h,v 1.3 1999/02/05 00:06:06 oster Exp $ */ + /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -27,39 +28,37 @@ * rights to redistribute these changes. */ -/***************************************************************************************** +/***************************************************************************** * - * callback.h -- header file for callback.c + * rf_callback.h -- Header file for callback.c * - * the reconstruction code must manage concurrent I/Os on multiple drives. - * it sometimes needs to suspend operation on a particular drive until some - * condition occurs. we can't block the thread, of course, or we wouldn't - * be able to manage our other outstanding I/Os. Instead we just suspend + * The reconstruction code must manage concurrent I/Os on multiple drives. + * It sometimes needs to suspend operation on a particular drive until some + * condition occurs. We can't block the thread, of course, or we wouldn't + * be able to manage our other outstanding I/Os. Instead we just suspend * new activity on the indicated disk, and create a callback descriptor and * put it someplace where it will get invoked when the condition that's - * stalling us has cleared. When the descriptor is invoked, it will call + * stalling us has cleared. When the descriptor is invoked, it will call * a function that will restart operation on the indicated disk. * - ****************************************************************************************/ + *****************************************************************************/ -#ifndef _RF__RF_CALLBACK_H_ -#define _RF__RF_CALLBACK_H_ +#ifndef _RF__RF_CALLBACK_H_ +#define _RF__RF_CALLBACK_H_ #include "rf_types.h" struct RF_CallbackDesc_s { - void (*callbackFunc) (RF_CBParam_t); /* function to call */ - RF_CBParam_t callbackArg; /* args to give to function, or just - * info about this callback */ - RF_CBParam_t callbackArg2; - RF_RowCol_t row; /* disk row and column IDs to give to the - * callback func */ - RF_RowCol_t col; - RF_CallbackDesc_t *next;/* next entry in list */ + void (*callbackFunc) (RF_CBParam_t); /* Function to call. */ + RF_CBParam_t callbackArg; /* Args to give to function, or */ + RF_CBParam_t callbackArg2; /* just info about this callback. */ + RF_RowCol_t row; /* Disk row and column IDs to */ + RF_RowCol_t col; /* give to the callback func. */ + RF_CallbackDesc_t *next; /* Next entry in list. */ }; -int rf_ConfigureCallback(RF_ShutdownList_t ** listp); +int rf_ConfigureCallback(RF_ShutdownList_t **); RF_CallbackDesc_t *rf_AllocCallbackDesc(void); -void rf_FreeCallbackDesc(RF_CallbackDesc_t * p); +void rf_FreeCallbackDesc(RF_CallbackDesc_t *); -#endif /* !_RF__RF_CALLBACK_H_ */ +#endif /* !_RF__RF_CALLBACK_H_ */ |