Re: KLDs vs static linking

2001-12-11 Thread Danny Braniss
I use them - where possible - when i have the same kernel for different boxes and i can configure the differences via klm's. danny > Hi Folks, > > Hopefully a quick question. > > Is there any reason to prefer KLD modules for drivers etc over static > linking? For example, KLDs are covenient, l

Re: KLDs and PCI?

2000-11-14 Thread Julian Elischer
Try use the newest version of /usr/share/examples/drivers/make_device_driver.sh I just added PCI support (but I have't tested it much yet) Hopefully I'll get feedback it it's too radically wrong. > I am working on a KLD for a PCI device. My problem is I can't find how to > call the probe an

Re: KLDs and PCI?

2000-11-13 Thread Warner Losh
In message <[EMAIL PROTECTED]> "Chris Ptacek" writes: : I am working on a KLD for a PCI device. My problem is I can't find how to : call the probe and attach calls during the load for a PCI device. I have : looked in the /usr/src/sys/pci directory and haven't found any KLDs to use : as an examp

Re: KLDs and PCI?

2000-11-13 Thread Mike Smith
> I am working on a KLD for a PCI device. My problem is I can't find how to > call the probe and attach calls during the load for a PCI device. I have > looked in the /usr/src/sys/pci directory and haven't found any KLDs to use > as an example. What are the steps I need to take to handle a PCI

Re: KLDs

1999-10-22 Thread Archie Cobbs
Mike Smith writes: > > I expect as much, but when I tried to make an IPX KLD, it paniced the > > system on unload. I will test the FFS KLD soon though. > > Panic on unload usually means that the code in question isn't designed > to unload. 8) Such code should return an error instead of allowi

Re: KLDs

1999-10-19 Thread Mike Smith
> On Mon, 18 Oct 1999, Mike Smith wrote: > > > > Is it possible to compile a kernel with no filesystems supported and have > > > the boot loader load FFS? I have built an FFS module but I have not yet > > > had time to test it. Frankly, I am kind of afraid to for fear of trashing > > > my syste

Re: KLDs

1999-10-19 Thread James Howard
On Mon, 18 Oct 1999, Mike Smith wrote: > > Is it possible to compile a kernel with no filesystems supported and have > > the boot loader load FFS? I have built an FFS module but I have not yet > > had time to test it. Frankly, I am kind of afraid to for fear of trashing > > my system. > > As l

Re: KLDs

1999-10-18 Thread Mike Smith
> Is it possible to compile a kernel with no filesystems supported and have > the boot loader load FFS? I have built an FFS module but I have not yet > had time to test it. Frankly, I am kind of afraid to for fear of trashing > my system. As long as the kernel will compile with no filesystems,

Re: KLDs

1999-10-10 Thread James Howard
On Sun, 10 Oct 1999, Mike Smith wrote: > You should note that neither QNX nor FreeBSD exhibit the above > behaviour. KLD is a linker; it allows you to link more stuff into the > kernel after it's been started. It doesn't implement a coprocess model > of any sort. Yes, I knew this for FreeBS

Re: KLDs

1999-10-10 Thread W Gerald Hicks
> > Could things be done in such a way that like QNX, it can > > kill and restart a misbehaving driver? What other cool things can be > > done? > > QNX doesn't do that. > Actually, in many cases it does. There are numerous advantages in a > well-designed/optimized micro-kernel that FreeBSD wi

Re: KLDs

1999-10-10 Thread Nate Williams
> > Could things be done in such a way that like QNX, it can > > kill and restart a misbehaving driver? What other cool things can be > > done? > > QNX doesn't do that. Actually, in many cases it does. There are numerous advantages in a well-designed/optimized micro-kernel that FreeBSD will n

Re: KLDs

1999-10-10 Thread Mike Smith
> On Slashdot, in a discussion regarding QNX, someone described it with the > following: > > Under QNX, if your driver crashes, the kernel just restarts it. > > After reading it, I became more interested in KLDs. My only prior > experiece was installing the Linux KLD and that was done by

Re: KLDs

1999-10-09 Thread James Howard
On Sat, 9 Oct 1999, W Gerald Hicks wrote: > > On Slashdot, ... > > > > Under QNX, if your driver crashes, the kernel just restarts it. > > That's not in the least bit how QNX works... oh well, it's slashdot. I've noticed Slashdotters tend to be clueless. It doesn't matter in this case,

Re: KLDs

1999-10-09 Thread W Gerald Hicks
> On Slashdot, ... > > Under QNX, if your driver crashes, the kernel just restarts it. That's not in the least bit how QNX works... oh well, it's slashdot. Cheers, Jerry Hicks [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the bo