Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Nov 1998 09:40:40 -0500 (EST)
From:      Brian Feldman <green@zone.syracuse.net>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        John Hay <jhay@mikom.csir.co.za>, freebsd-current@FreeBSD.ORG
Subject:   Re: Booting Elf Kernel : replying to myself
Message-ID:  <Pine.BSF.4.05.9811030937540.27548-100000@zone.syracuse.net>
In-Reply-To: <Pine.BSF.4.05.9811030927260.27548-100000@zone.syracuse.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <peter@netplex.com.au>   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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811030937540.27548-100000>