diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-06-09 10:57:34 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-06-09 10:57:34 +0000 |
commit | 503abe45402556db07071fca9192a54c6747781f (patch) | |
tree | 2aee47df7b4c048e552dfb36f69f352adcc71438 /sys/geom/geom_dev.c | |
parent | 56cf50ad48fda74357412d8a3781887ce34979cd (diff) | |
download | src-503abe45402556db07071fca9192a54c6747781f.tar.gz src-503abe45402556db07071fca9192a54c6747781f.zip |
Improve some on the naming.
Submitted by: iedowse
Notes
Notes:
svn path=/head/; revision=98066
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index f3be90cd4323..0051eb528d12 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -82,7 +82,7 @@ static struct g_class g_dev_class = { "DEV", g_dev_taste, NULL, - G_CLASS_INITSTUFF + G_CLASS_INITIALIZER }; static void @@ -94,7 +94,7 @@ g_dev_clone(void *arg, char *name, int namelen, dev_t *dev) return; g_trace(G_T_TOPOLOGY, "g_dev_clone(%s)", name); - g_rattle(); + g_waitidle(); /* XXX: can I drop Giant here ??? */ /* g_topology_lock(); */ @@ -182,7 +182,7 @@ g_dev_open(dev_t dev, int flags, int fmt, struct thread *td) error = g_access_rel(cp, r, w, e); g_topology_unlock(); PICKUP_GIANT(); - g_rattle(); + g_waitidle(); return(error); } @@ -208,7 +208,7 @@ g_dev_close(dev_t dev, int flags, int fmt, struct thread *td) error = g_access_rel(cp, r, w, e); g_topology_unlock(); PICKUP_GIANT(); - g_rattle(); + g_waitidle(); return (error); } @@ -295,7 +295,7 @@ g_dev_ioctl(dev_t dev, u_long cmd, caddr_t data, int fflag, struct thread *td) g_topology_unlock(); } PICKUP_GIANT(); - g_rattle(); + g_waitidle(); if (error == ENOIOCTL) { i = IOCGROUP(cmd); printf("IOCTL(0x%lx) \"%s\"", cmd, gp->name); @@ -403,7 +403,7 @@ g_dev_orphan(struct g_consumer *cp) destroy_dev(dev); if (cp->acr > 0 || cp->acw > 0 || cp->ace > 0) g_access_rel(cp, -cp->acr, -cp->acw, -cp->ace); - g_dettach(cp); + g_detach(cp); g_destroy_consumer(cp); g_destroy_geom(gp); } |