• 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: Get PID from Socket Descriptor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Get PID from Socket Descriptor? (From: Charlie Boisseau <email@hidden>)
 >Re: Get PID from Socket Descriptor? (From: Quinn <email@hidden>)
 >Re: Get PID from Socket Descriptor? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Get PID from Socket Descriptor?
  • Next by Date: Iterating AppleTalk services on a network
  • Previous by thread: Re: Get PID from Socket Descriptor?
  • Next by thread: Re: Get PID from Socket Descriptor?
  • Index(es):
    • Date
    • Thread