On Tue, 20 Nov 2001, Sean Morrell wrote:
Actually, the driver is for an audio device. And the user space
application is nothing more than a system preference pane, needed only to
configure the device. The audio device has some pecularities making it
unconfigurable using the typical CoreAudio interface. I do have the
option of using an Audio HAL Plug-In. But I just wanted to see if another
IPC method might quicken the development. At this time, I simply need a
one way notification to the driver. Eventually the driver will need to
respond to the preference pane, returning small structures of data. In
both cases, what IPC would you recommend?
I'd probably just throw a sysctl at it, make it a SYSCTL_PROC so that it calls a routine in the driver that stores the value. You can also use the same mechanism to read back the values the driver is currently using. Should work pretty well for tuning small parameters in a driver or other parts of the kernel. Also has the advantage of being a pretty standard BSD-ism. Later, David --------------------------------------------------------------------- Check out my weekly web comic: http://www.techmagazine.org
participants (1)
-
David A. Gatwood