Subject: Re: Understanding foo_open, foo_read, etc.
To: None <tech-kern@NetBSD.org>
From: Peter Seebach <email@example.com>
Date: 08/29/2006 18:04:27
In message <200608292244.SAA14727@Sparkle.Rodents.Montreal.QC.CA>, der Mouse wr
>> The obvious thing I was missing was [...], and the subtle thing I was
>> missing was [...].
>Ah. Yes, given your current explanation, I can see how you could get
>confused - and I think you have probably managed to get unconfused.
So, that leads to the obvious question: How easy is it to clone a device
rather than a file in NetBSD? Actually, looking at this, I may already have
won; it looks as though, if I have relevant tags stored in the device's
softc, I can just set the relevant parameters in the softc passed to
dev_open, and the various other routines will be called with them accordingly,
which may solve nearly all the problems I have to deal with, and let me
leave most of the code alone.