Date: Tue, 3 Nov 1998 09:22:49 +1030 From: Greg Lehey <grog@lemis.com> To: Martti Kuparinen <martti.kuparinen@lmf.ericsson.se>, hackers@FreeBSD.ORG Subject: Re: Pseudo-device as a LKM Message-ID: <19981103092249.W354@freebie.lemis.com> In-Reply-To: <3.0.6.32.19981102124453.02ce8b30@openmail.lmf.ericsson.se>; from Martti Kuparinen on Mon, Nov 02, 1998 at 12:44:53PM %2B0200 References: <3.0.6.32.19981102124453.02ce8b30@openmail.lmf.ericsson.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 2 November 1998 at 12:44:53 +0200, Martti Kuparinen wrote: > I want to implement a pseudo-device as LKM. But the question is where > to find a working example? I've looked at e.g. the if_tun device, > but the unload is not successful: > > # modload /lkm/if_tun_mod.o > # modunload -n if_tun_mod > modunload: LMUNLOAD: Device busy > > So please give any pointers. I'm using 2.2.7-R but I could jump into 3.0 > if that's what needed. Well, first, LKMs are going away. The replacement is called KLD (Kernel Loadable Module). Secondly, the question of unloading a module is a matter of implementation. I don't think you should automatically consider it an error if an LKM can't be unloaded. In general, this is a decision made in the unload code. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key 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?19981103092249.W354>