diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-12-27 13:59:13 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2007-12-27 13:59:13 +0000 |
commit | f32f6ed7eeed1a84f69f7f790e84a93f5ea11a73 (patch) | |
tree | 2234a075b86cc6d6b409cc9a84fcf98205456982 /sys/kern/spec_vnops.c | |
parent | 81ffa8b843b1adb19ebe5dfe4bde01457853a3e8 (diff) |
fifofs, deadfs and specfs all have the same "trivial lookup routine that
always fails". Introduce vop_generic_lookup(), which is a trivial lookup
routine that always fails and use that instead, zap the redundant copies.
ok toby@, tedu@, art@
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r-- | sys/kern/spec_vnops.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c index d6507439703..97bfdf61f85 100644 --- a/sys/kern/spec_vnops.c +++ b/sys/kern/spec_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spec_vnops.c,v 1.43 2007/06/18 08:30:07 jasper Exp $ */ +/* $OpenBSD: spec_vnops.c,v 1.44 2007/12/27 13:59:12 thib Exp $ */ /* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */ /* @@ -58,7 +58,7 @@ struct vnode *speclisth[SPECHSZ]; int (**spec_vnodeop_p)(void *); struct vnodeopv_entry_desc spec_vnodeop_entries[] = { { &vop_default_desc, vn_default_error }, - { &vop_lookup_desc, spec_lookup }, /* lookup */ + { &vop_lookup_desc, vop_generic_lookup }, /* lookup */ { &vop_create_desc, spec_create }, /* create */ { &vop_mknod_desc, spec_mknod }, /* mknod */ { &vop_open_desc, spec_open }, /* open */ @@ -107,18 +107,6 @@ spec_vnoperate(void *v) } /* - * Trivial lookup routine that always fails. - */ -int -spec_lookup(void *v) -{ - struct vop_lookup_args *ap = v; - - *ap->a_vpp = NULL; - return (ENOTDIR); -} - -/* * Open a special file. */ /* ARGSUSED */ |