• 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
Re: Communicating from kernel extension to application? & Reading data from the Kernel: many to one
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Communicating from kernel extension to application? & Reading data from the Kernel: many to one


  • Subject: Re: Communicating from kernel extension to application? & Reading data from the Kernel: many to one
  • From: David Gatwood <email@hidden>
  • Date: Tue, 1 Feb 2005 14:04:16 -0800

On Feb 1, 2005, Stephane Sudre <email@hidden> wrote:

On Feb 1, 2005, at 7:54 AM, Quinn wrote:

At 21:36 -0500 9/1/05, Brian Kendall wrote:

I still can't find TCPLogger.  Searching the developer site only
yields
two results to documents mentioning the existence of TCPLogger, but
nothing of TCPLogger itself.  There must be something I'm missing
here in
terms of finding it.  Where exactly is it?


TCPLogger is not currently available publicly. We keep in under wraps because we're actively discouraging the development of BSD-based KEXT because of the binary compatibility concerns. These concerns will be resolved in Tiger, at which point we'll publish TCPLogger properly.

If you want a copy of the current code, please write to
<email@hidden> and we'll send it your way.

If 10.3 is the minimum requirement, Kern control could be used.

There is a sample code for this in the Kernel Programming document
AFAIK. Don't ask me the page, I always have to search for it.

It's in Network Kernel Extensions, actually. KP pretty much just talks about sysctl, ioctl, and Mach RPC.



Message: 15
Date: Tue, 1 Feb 2005 18:40:49 +0100
From: Stephane Sudre <email@hidden>
Subject: Reading data from the Kernel: many to one
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed

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?

sysctl, ioctl, RPC, kern_control, memory mapping... there's probably at least a couple of dozen. Not that many that are recommended, but....


- sysctl: Add a sysctl record. It works perfectly well but for some
reasons I can't use it.

Make sure you explicitly set it to be accessible to non-root processes. IIRC, the default is to only be readable by tasks running as root.


David

_______________________________________________
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


  • Prev by Date: Re: Reading data from the Kernel: many to one
  • Next by Date: IOServiceOpen( ) returns kIOReturnNoMemory
  • Previous by thread: Re: Reading data from the Kernel: many to one
  • Next by thread: IOServiceOpen( ) returns kIOReturnNoMemory
  • Index(es):
    • Date
    • Thread