Reading data from the Kernel: many to one
Reading data from the Kernel: many to one
- Subject: Reading data from the Kernel: many to one
- From: Stephane Sudre <email@hidden>
- Date: Tue, 1 Feb 2005 18:40:49 +0100
What kind of mechanism can be used to read data in the Kernel from a
user land application when you need it to work with multiple user land
processes?
Let's say I have a long stored in a Kernel Extension and I want to read
the value of this long from multiple user land applications (by
polling).
The mechanisms I have experimented so far are:
- Kern Control: Add a Kern Control, and get the value via a getsockopt.
It works but this requires to have as much Kern Control sockets
registered in the kernel as user land applications that want to access
the long.
- sysctl: Add a sysctl record. It works perfectly well but for some
reasons I can't use it.
Is there any other simple mechanism (by simple I mean not involving the
I/O Kit for instance)?
_______________________________________________
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