Date: Sat, 27 Mar 1999 19:36:21 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: freebsd-hackers@freebsd.org Subject: kld questions Message-ID: <14077.30470.231888.128618@grasshopper.cs.duke.edu>
next in thread | raw e-mail | index | archive | help
I'm interested in transforming our Trapeze/Myrinet device driver into a KLD, and I've got two specific questions about KLDs. o How do I attach a PCI device after boot time? Is this even supported? Can anybody point me at any sample code? o How do I make the KLD unload procedure wait until the module is ready to be unloaded? Is it legal to sleep? The motivation behind this question is that the driver allocates its own memory for receives, and wraps external mbufs around that memory. That means it has its own mbuf reference & free routines. It would be a bad thing if an mbuf the driver allocated was still floating around in the upper layers of the IP stack after the driver was unloaded -- eventually, M_FREE would call the no-longer existent ext_free() function. Thanks, Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14077.30470.231888.128618>