Subject: Re: Console polling programming interface change (proposal)
To: None <jdolecek@netbsd.org>
From: None <cgd@sibyte.com>
List: tech-kern
Date: 07/19/2001 12:28:04
jdolecek@netbsd.org ("Jaromír Dolecek") writes:
> I propose these interface changes:
> * individual drivers' entry points would change to
> int (*cnpollc)(dev_t dev, int on, int cookie)
> i.e. handler would be function returning int, and taking one extra 'int'
> argument
> The handler is supposed to return cookie value for 'on' call (the 'cookie'
> arg would be ingnored in that case), and accept cookie value as the 3rd arg
> for 'off' call (return value would be always zero in this case)
and what is the meaning of said 'cookie'? are you sure it can always
fit in an 'int'? (i.e., would it ever need to be a pointer, or a
wider register value, or...???)
cgd