Re: Accessing User Properties from a Kernel Extension.
Re: Accessing User Properties from a Kernel Extension.
- Subject: Re: Accessing User Properties from a Kernel Extension.
- From: Michael Smith <email@hidden>
- Date: Mon, 19 Apr 2010 08:51:14 -0700
On Apr 19, 2010, at 8:09 AM, Leonard Shoell wrote: I have written a kernel extension. In this case, it is a USB audio plug-in. I have also written a user application that controls the properties used by the plug-in, such as turning on/off various audio filters. My problem is I cannot figure out where/how the user application should store these properties. The property storage needs to be persistent and needs to be accessible by the plug-in. What mechanism should I use to store the properties and how do I access the properties from the plug-in?
CFPreferences is a fine way for you to store that sort of thing.
As for loading these prefs, you can use a launchd job that responds to messages from your extension to read/write them. This is the current canonical mechanism for 'demand push' of user-space data to kernel extensions.
= Mike
-- Ars longa, vita brevis, occasio praeceps, experimentum periculosum, iudicium difficile -- Hippocrates
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden