devfs_devs.c (147982) | devfs_devs.c (149107) |
---|---|
1/*- 2 * Copyright (c) 2000,2004 3 * Poul-Henning Kamp. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 27 * | 1/*- 2 * Copyright (c) 2000,2004 3 * Poul-Henning Kamp. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vfsops.c 1.36 27 * |
28 * $FreeBSD: head/sys/fs/devfs/devfs_devs.c 147982 2005-07-14 10:22:09Z rwatson $ | 28 * $FreeBSD: head/sys/fs/devfs/devfs_devs.c 149107 2005-08-15 19:40:53Z phk $ |
29 */ 30 31#include "opt_devfs.h" 32#include "opt_mac.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/conf.h> --- 242 unchanged lines hidden (view full) --- 279 continue; 280 } 281 if (dev == NULL) 282 continue; 283 if (de != NULL) 284 continue; 285 if (!devfs_getref(i)) 286 continue; | 29 */ 30 31#include "opt_devfs.h" 32#include "opt_mac.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/conf.h> --- 242 unchanged lines hidden (view full) --- 279 continue; 280 } 281 if (dev == NULL) 282 continue; 283 if (de != NULL) 284 continue; 285 if (!devfs_getref(i)) 286 continue; |
287 dd = dm->dm_basedir; | 287 dd = dm->dm_rootdir; |
288 s = dev->si_name; 289 for (;;) { 290 for (q = s; *q != '/' && *q != '\0'; q++) 291 continue; 292 if (*q != '/') 293 break; 294 de = devfs_find(dd, s, q - s); 295 if (de == NULL) { --- 133 unchanged lines hidden --- | 288 s = dev->si_name; 289 for (;;) { 290 for (q = s; *q != '/' && *q != '\0'; q++) 291 continue; 292 if (*q != '/') 293 break; 294 de = devfs_find(dd, s, q - s); 295 if (de == NULL) { --- 133 unchanged lines hidden --- |