Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Nov 1998 12:19:41 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Martti Kuparinen <martti.kuparinen@lmf.ericsson.se>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Pseudo-device as a LKM 
Message-ID:  <199811022019.MAA01148@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 02 Nov 1998 12:44:53 %2B0200." <3.0.6.32.19981102124453.02ce8b30@openmail.lmf.ericsson.se> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

If you plan to have your device live for any length of time, 3.0 is the 
way to go.  Look in /sys/modules for examples.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



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?199811022019.MAA01148>