Date: Fri, 1 Jun 2001 08:51:11 -0700 (PDT) From: Brian Somers <brian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/devfs devfs_vnops.c src/sys/net if_tun.c if_tunvar.h Message-ID: <200106011551.f51FpBf59805@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2001/06/01 08:51:11 PDT Modified files: sys/fs/devfs devfs_vnops.c sys/net if_tun.c if_tunvar.h Log: Support /dev/tun cloning. Ansify if_tun.c while I'm there. Only tun0 -> tun32767 may now be opened as struct ifnet's if_unit is a short. It's now possible to open /dev/tun and get a handle back for an available tun device (use devname to find out what you got). The implementation uses rman by popular demand (and against my judgement) to track opened devices and uses the new dev_depends() to ensure that all make_dev()d devices go away before the module is unloaded. Reviewed by: phk Revision Changes Path 1.26 +3 -2 src/sys/fs/devfs/devfs_vnops.c 1.94 +130 -93 src/sys/net/if_tun.c 1.9 +2 -1 src/sys/net/if_tunvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106011551.f51FpBf59805>