Subject: Re: Console polling programming interface change (proposal)
To: None <,>
From: None <>
List: tech-kern
Date: 07/20/2001 15:29:51
| Chris Demetriou wrote:
| > 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...???)
| Oh, right :) The thing I want to use it for (value returned from spl call)
| is just int, but it's possible something would rather pass a pointer.
| OK, I'd change the entry point type to
| 	void (*cnpollc)(dev_t dev, int on, void**cookie);

O.K.  Getting back to the original question:

Why can't the driver's cnpollc routine handle all these details internally?
Why do you need to pollute MI code with cookies?  

Or, to be more precise, what other solutions have you examined and why
have they failed?