Subject: Implementation question
To: None <tech-kern@NetBSD.org>
From: Filka Michal <michal.filka@strom.cz>
List: tech-kern
Date: 04/11/2006 11:20:49
Hi all,
I'm looking for as many different solutions of my problem as possible.
The problem is:
- I want to read data into application from my device driver using read
call
- data may be (or not) available

I want to block the call of read in my driver until data becomes
available. Only ideas I have are to do active waiting (bad) or use
locking internal to driver (better). However, I know very little about
NetBSD's internals, so I don't know if there is any other (usual) way
how to satisfy my requirement.

Thanks for any ideas.
Michal Filka