From owner-cvs-sys Sun Dec 7 17:42:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA13393 for cvs-sys-outgoing; Sun, 7 Dec 1997 17:42:02 -0800 (PST) (envelope-from owner-cvs-sys) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA13341; Sun, 7 Dec 1997 17:41:31 -0800 (PST) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id RAA24270; Sun, 7 Dec 1997 17:41:27 -0800 (PST) Message-ID: <19971207174126.62238@hydrogen.nike.efn.org> Date: Sun, 7 Dec 1997 17:41:26 -0800 From: John-Mark Gurney To: Sean Eric Fagan Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: Re: cvs commit: src/sys/miscfs/procfs procfs_subr.c procfs_vfsops.c src/sys/kern kern_exit.c References: <199712080106.RAA27587@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199712080106.RAA27587@freefall.freebsd.org>; from Sean Eric Fagan on Sun, Dec 07, 1997 at 05:06:38PM -0800 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Sean Eric Fagan scribbled this message on Dec 7: > sef 1997/12/07 17:06:37 PST > > Modified files: > sys/miscfs/procfs procfs_subr.c procfs_vfsops.c > sys/kern kern_exit.c > Log: > Use at_exit() to invoke procfs_exit() instead of calling it directly. > Note that an unload facility should be used to call rm_at_exit() (if > procfs is being loaded as an LKM and is subsequently removed), but it > was non-obvious how to do this in the VFS framework. to do this, you will need to look at sys/mount.h and see how VFS_SET is defined... then you will need to roll your own _mod function that will handle the different functions (load/unload/stat) that the function normally does... hope this helps... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD