From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Tue, 15 Apr 2008 07:28:26 -0400 From: a@9srv.net In-Reply-To: <138575260804150140h43c3c030nd5a9809ecc1468da@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Writing drivers in Plan 9 Topicbox-Message-UUID: 8dfbd34e-ead3-11e9-9d60-3106f5b1d025 Given that you're already into Inferno as well as Plan 9, I think a really nice way to get into driver development is with emu drivers for Inferno. The basic structure is the same as for native OS drivers in either system: implement a small set of entry points (fooattach, fooread, &c), making use of the dev* defaults where appropriate. It's then a much smaller step to move into native hardware drivers for Plan 9 or Inferno. And when you do get to that point, take a look at Inferno's os/port/devXXX.c; it's a template for what you need to implement. In any case, the devtab (look for '^Dev') towards the end of any driver will tell you what you really need. It's a much nicer, constrained set for Inferno and Plan 9 than any unix. Anthony