From owner-cvs-all Fri Jun 1 8:51:16 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6FD1737B42C; Fri, 1 Jun 2001 08:51:11 -0700 (PDT) (envelope-from brian@FreeBSD.org) Received: (from brian@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f51FpBf59805; Fri, 1 Jun 2001 08:51:11 -0700 (PDT) (envelope-from brian) Message-Id: <200106011551.f51FpBf59805@freefall.freebsd.org> From: Brian Somers Date: Fri, 1 Jun 2001 08:51:11 -0700 (PDT) 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 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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