devfs_vnops.c (65200) | devfs_vnops.c (65374) |
---|---|
1#define DEBUG 1 2/* 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * Copyright (c) 2000 6 * Poul-Henning Kamp. All rights reserved. 7 * 8 * This code is derived from software donated to Berkeley by --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)kernfs_vnops.c 8.15 (Berkeley) 5/21/95 33 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vnops.c 1.43 34 * | 1#define DEBUG 1 2/* 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * Copyright (c) 2000 6 * Poul-Henning Kamp. All rights reserved. 7 * 8 * This code is derived from software donated to Berkeley by --- 18 unchanged lines hidden (view full) --- 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)kernfs_vnops.c 8.15 (Berkeley) 5/21/95 33 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vnops.c 1.43 34 * |
35 * $FreeBSD: head/sys/fs/devfs/devfs_vnops.c 65200 2000-08-29 14:45:49Z rwatson $ | 35 * $FreeBSD: head/sys/fs/devfs/devfs_vnops.c 65374 2000-09-02 19:17:34Z phk $ |
36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/time.h> 42#include <sys/conf.h> 43#include <sys/vnode.h> --- 251 unchanged lines hidden (view full) --- 295 de = TAILQ_NEXT(de, de_list); /* ".." */ 296 de = de->de_dir; 297 } 298 299#if 0 300 printf("Finished specname: %d \"%s\"\n", i, specname + i); 301#endif 302 cdev = NODEV; | 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/kernel.h> 41#include <sys/time.h> 42#include <sys/conf.h> 43#include <sys/vnode.h> --- 251 unchanged lines hidden (view full) --- 295 de = TAILQ_NEXT(de, de_list); /* ".." */ 296 de = de->de_dir; 297 } 298 299#if 0 300 printf("Finished specname: %d \"%s\"\n", i, specname + i); 301#endif 302 cdev = NODEV; |
303 EVENTHANDLER_INVOKE(devfs_clone, specname + i, | 303 EVENTHANDLER_INVOKE(dev_clone, specname + i, |
304 strlen(specname + i), &cdev); 305#if 0 306 printf("cloned %s -> %p %s\n", specname + i, cdev, 307 cdev == NODEV ? "NODEV" : cdev->si_name); 308#endif 309 if (cdev == NODEV) 310 goto notfound; 311 --- 356 unchanged lines hidden --- | 304 strlen(specname + i), &cdev); 305#if 0 306 printf("cloned %s -> %p %s\n", specname + i, cdev, 307 cdev == NODEV ? "NODEV" : cdev->si_name); 308#endif 309 if (cdev == NODEV) 310 goto notfound; 311 --- 356 unchanged lines hidden --- |