Subject: Re: Console polling programming interface change (proposal)
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/19/2001 12:28:04
email@example.com ("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'
> 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...???)