From owner-freebsd-current Tue Nov 3 06:44:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA16006 for freebsd-current-outgoing; Tue, 3 Nov 1998 06:41:25 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from zone.syracuse.net (zone.syracuse.net [205.232.47.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA15993 for ; Tue, 3 Nov 1998 06:41:19 -0800 (PST) (envelope-from green@zone.syracuse.net) Received: from localhost (green@localhost) by zone.syracuse.net (8.8.8/8.8.7) with ESMTP id JAA28065; Tue, 3 Nov 1998 09:40:40 -0500 (EST) Date: Tue, 3 Nov 1998 09:40:40 -0500 (EST) From: Brian Feldman To: Peter Wemm cc: John Hay , freebsd-current@FreeBSD.ORG Subject: Re: Booting Elf Kernel : replying to myself In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am referring also that it would check to see if this file exists, and return a malloced answer, else return NULL. This way it would be asy to say something like char *name; if ((name = getkldbyname("mfs")) != NULL { kldload(name); free(name); } else { fprintf(stderr, "Could not load mfs.\n"); exit(1); } Brian Feldman On Tue, 3 Nov 1998, Brian Feldman wrote: > So should we take the VFS loading out of libc and add it to mount? Or > should there be a wrapper function in libc, getkldbyname (char *name) and > return "/modules/name.ko"? > > Brian Feldman > > On Tue, 3 Nov 1998, Peter Wemm wrote: > > > Brian Feldman wrote: > > > Ahhhh, that's where it is! I have no good idea on how to allow, with this > > > code, lkm's and kld's to coexist.... so is it time to completely phase out > > > lkm's yet? > > > > I think the best way is to have mount(2) initiate a kldload if needed. We > > will need this functionality sooner or later. If mount(2) does it, we can > > garbage collect unused, unmounted filesystems after a while and unload > > them. > > > > > Brian Feldman > > > > > > On Mon, 2 Nov 1998, John Hay wrote: > > > > > > > > Be sure to let me know when ELF kernels can autoload kld modules like the > > > > > current a.out kernel does with lkm's. > > > > > > > > It's not the kernel that loads them. Go and look in lib/libc/gen/getvfsent. > > c > > > > > > > > John > > > > -- > > > > John Hay -- John.Hay@mikom.csir.co.za > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-current" in the body of the message > > > > > > > Cheers, > > -Peter > > -- > > Peter Wemm Netplex Consulting > > "No coffee, No workee!" :-) > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-current" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message