Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 1995 08:21:08 -0500
From:      "Eric L. Hernes" <erich@lodgenet.com>
To:        hm@altona.hamburg.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: LKM example device driver available 
Message-ID:  <199509261321.IAA15175@jake.lodgenet.com>
In-Reply-To: Your message of "Mon, 25 Sep 1995 19:09:09 BST." <m0sxHxl-000013C@ernie.altona.hamburg.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Since i could not find any examples of a LKM device driver i wrote one myself.
> 
> It is a very basic one, it just controls two 7segment displays connected to
> a 8255 parallel port (no interrupts), commented and with a postinstall script
> to make device files.
> 

I had (have) a c-module which will ld -r with the pcaudio device to
make an lkm.  There has been some discussion as to where the
various pieces should go though.  For example it has been
argued that the devsw table should go into each and every driver,
probably a good idea too, but it means revisiting all drivers.
All in all, my example probably isn't good to use as a model, but
it does show what needs to be done.

I'll put the tarball in my home dir on freefall for a few days...

eric.

> I think it would be a good thing to put it into /usr/src/share/examples/lkm.
> 
> It is available from wcarchive.cdrom.com in directory pub/FreeBSD/incoming as
> led-lkm-driver.tar.gz.
> 
> hellmuth
> -- 
> Hellmuth Michaelis           hm@altona.hamburg.com              Hamburg, Europe
>                                               (A)bort, (R)etry, (I)nstall BSD ?
> 

eric.
--
erich@lodgenet.com
erich@rrnet.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509261321.IAA15175>