Re: Get PID from Socket Descriptor?
Re: Get PID from Socket Descriptor?
- Subject: Re: Get PID from Socket Descriptor?
- From: Quinn <email@hidden>
- Date: Tue, 10 May 2005 09:29:36 +0100
At 19:06 +0200 9/5/05, Stephane Sudre wrote:
What kind of binary (in)compatibility?
The same sort of binary compatibility problems that "lsof" has. Even
if you load within the kernel, there are still no good interfaces
(KPIs) to do this job. So you end up poking around in kernel data
structures, and you basically become rev-locked to the kernel version.
That's how "lsof" works (although it accesses kernel memory from user
space, rather than via a KEXT). However, "lsof" has the advantage
that, if Apple updates the kernel such that it breaks, we also update
"lsof" to keep it working. That's exactly what we did in Tiger.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden