From owner-freebsd-hackers Mon Nov 2 12:20:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA28438 for freebsd-hackers-outgoing; Mon, 2 Nov 1998 12:20:45 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA28427 for ; Mon, 2 Nov 1998 12:20:44 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id MAA01148; Mon, 2 Nov 1998 12:19:41 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199811022019.MAA01148@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Martti Kuparinen cc: hackers@FreeBSD.ORG Subject: Re: Pseudo-device as a LKM In-reply-to: Your message of "Mon, 02 Nov 1998 12:44:53 +0200." <3.0.6.32.19981102124453.02ce8b30@openmail.lmf.ericsson.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 02 Nov 1998 12:19:41 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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