diff options
author | dg <dg@FreeBSD.org> | 1995-03-17 04:18:07 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-03-17 04:18:07 +0000 |
commit | 14517b375e8c0910509b2dd2cf6d6d95a681500e (patch) | |
tree | 760d52c045c9522199bfd63dd5019ba6b8ef4cea | |
parent | 1c5fac9a93b3638b598fa996d5e71cf56ec8bcf9 (diff) | |
download | FreeBSD-src-14517b375e8c0910509b2dd2cf6d6d95a681500e.zip FreeBSD-src-14517b375e8c0910509b2dd2cf6d6d95a681500e.tar.gz |
Changed names of goaway routines into shutdown routines.
-rw-r--r-- | sys/kern/kern_devconf.c | 10 | ||||
-rw-r--r-- | sys/sys/devconf.h | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_devconf.c b/sys/kern/kern_devconf.c index 9e09e66..6efadd1 100644 --- a/sys/kern/kern_devconf.c +++ b/sys/kern/kern_devconf.c @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_devconf.c,v 1.6 1994/12/31 17:15:16 jkh Exp $ + * $Id: kern_devconf.c,v 1.7 1995/02/14 06:34:49 phk Exp $ */ /* @@ -71,24 +71,24 @@ dev_detach(struct kern_devconf *kdc) } /* - * NB: the device must do a dev_detach inside its goaway routine, if it + * NB: the device must do a dev_detach inside its shutdown routine, if it * succeeds. If no routine is specified, we assume no special treatment is * required. */ int -dev_goawayall(int force) +dev_shutdownall(int force) { int rv = 0; struct kern_devconf *kdc = dc_list; while(kdc) { - if(!kdc->kdc_goaway) { + if(!kdc->kdc_shutdown) { dev_detach(kdc); kdc = dc_list; continue; } - if(kdc->kdc_goaway(kdc, force)) { + if(kdc->kdc_shutdown(kdc, force)) { rv++; kdc = kdc->kdc_next; } else { diff --git a/sys/sys/devconf.h b/sys/sys/devconf.h index 1413af6..e38abbc 100644 --- a/sys/sys/devconf.h +++ b/sys/sys/devconf.h @@ -22,7 +22,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: devconf.h,v 1.2 1994/10/19 00:10:10 wollman Exp $ + * $Id: devconf.h,v 1.3 1994/10/23 21:28:03 wollman Exp $ */ /* @@ -83,7 +83,7 @@ typedef int (*kdc_internalize_t)(struct proc *, struct kern_devconf *, void *, /* * GOAWAY: shut the device down, if possible, and prepare to exit. */ -typedef int (*kdc_goaway_t)(struct kern_devconf *, int); +typedef int (*kdc_shutdown_t)(struct kern_devconf *, int); struct kern_devconf { struct kern_devconf *kdc_next; /* filled in by kern_devconf */ @@ -94,7 +94,7 @@ struct kern_devconf { struct machdep_kdevconf kdc_md; /* filled in by driver */ kdc_externalize_t kdc_externalize; /* filled in by driver */ kdc_internalize_t kdc_internalize; /* filled in by driver */ - kdc_goaway_t kdc_goaway; /* filled in by driver */ + kdc_shutdown_t kdc_shutdown; /* filled in by driver */ size_t kdc_datalen; /* filled in by driver */ struct kern_devconf *kdc_parent; /* filled in by driver */ void *kdc_parentdata; /* filled in by driver */ @@ -104,7 +104,7 @@ struct kern_devconf { int dev_attach(struct kern_devconf *); int dev_detach(struct kern_devconf *); -int dev_goawayall(int); +int dev_shutdownall(int); #endif /* KERNEL */ |