• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reading data from the Kernel: many to one
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Reading data from the Kernel: many to one
      • From: Andrew Gallatin <email@hidden>
    • Re: Reading data from the Kernel: many to one
      • From: Godfrey van der Linden <email@hidden>
  • Prev by Date: Re: How to change ContentHint of a partition
  • Next by Date: Re: Reading data from the Kernel: many to one
  • Previous by thread: Re: How to change ContentHint of a partition
  • Next by thread: Re: Reading data from the Kernel: many to one
  • Index(es):
    • Date
    • Thread