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: "Leonard Shoell" <email@hidden>
- Date: Mon, 19 Apr 2010 10:12:19 -0600
Thanks Mike. This is very helpful.
Are you aware of any sample code that shows the launched job/extension
piece?
From: Michael Smith
[mailto:email@hidden]
Sent: Monday, April 19, 2010 9:51 AM
To: Leonard Shoell
Cc: email@hidden
Subject: Re: Accessing User Properties from a Kernel Extension.
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.
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