summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/devfs/devfs_tree.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1998-07-05 23:10:22 +0000
committerjulian <julian@FreeBSD.org>1998-07-05 23:10:22 +0000
commit04d286f6479d77492b97067c0d09e9c982b707c0 (patch)
tree36afb306ded2623c005a58e21b406347d55051e4 /sys/miscfs/devfs/devfs_tree.c
parent788be0aa49419de4120d69f892f1538b24fbfb7e (diff)
downloadFreeBSD-src-04d286f6479d77492b97067c0d09e9c982b707c0.zip
FreeBSD-src-04d286f6479d77492b97067c0d09e9c982b707c0.tar.gz
DEVFS completely bypasses the cdevsw and bdevsw tables now.
Each devfs node has (and has had fro a while) a pointer directly to the correct cdefsw entry so just use it instead of doing the lookup. There are several other places in the kernel that still use the tables however, so they can't go away yet..
Diffstat (limited to 'sys/miscfs/devfs/devfs_tree.c')
-rw-r--r--sys/miscfs/devfs/devfs_tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/devfs/devfs_tree.c b/sys/miscfs/devfs/devfs_tree.c
index ffcb243..c43a011 100644
--- a/sys/miscfs/devfs/devfs_tree.c
+++ b/sys/miscfs/devfs/devfs_tree.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: devfs_tree.c,v 1.54 1998/06/21 14:53:20 bde Exp $
+ * $Id: devfs_tree.c,v 1.55 1998/07/04 22:30:22 julian Exp $
*/
@@ -498,7 +498,7 @@ dev_add_node(int entrytype, union typeinfo *by, dn_p proto,
* Make sure it has DEVICE type ops
* and device specific fields are correct
*/
- dnp->ops = &dev_spec_vnodeop_p;
+ dnp->ops = &devfs_spec_vnodeop_p;
dnp->by.Bdev.bdevsw = by->Bdev.bdevsw;
dnp->by.Bdev.dev = by->Bdev.dev;
break;
@@ -507,7 +507,7 @@ dev_add_node(int entrytype, union typeinfo *by, dn_p proto,
* Make sure it has DEVICE type ops
* and device specific fields are correct
*/
- dnp->ops = &dev_spec_vnodeop_p;
+ dnp->ops = &devfs_spec_vnodeop_p;
dnp->by.Cdev.cdevsw = by->Cdev.cdevsw;
dnp->by.Cdev.dev = by->Cdev.dev;
break;
OpenPOWER on IntegriCloud