• 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: how to tell which symbols are exported?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to tell which symbols are exported?


  • Subject: Re: how to tell which symbols are exported?
  • From: Sam Vaughan <email@hidden>
  • Date: Sun, 10 Apr 2005 18:19:40 +1000

When you build an xnu kernel, the .exports files in xnu/config/ are used to create the fake symbols in System.kext. If you add symbols to a debug kernel that you want to access from within your kext, you need to add them to the appropriate .exports file(s), otherwise kextload will fail.

You also can't assume that just because a symbol is in /mach_kernel, it'll be listed in System.kext and available to you. I usually run the following grep over the binaries in System.kext to determine if I'll be able to use a particular kernel symbol from inside a kext. In this example, the function physio():

% find /System/Library/Extensions/System.kext/PlugIns \
  -type f -a ! -name "*.plist" | xargs nm | grep physio

Sam

On Fri, 8 Apr 2005, Andrew Gallatin <email@hidden> wrote:

I there a tool to get a list of all the symbols that each of the
loaded kernel extensions are exporting on a given system?

Background: I'm sitting at a shell prompt, trying to kextload an older
kext on a newer system. A symbol required for the kext, call it
"foo", which used to be resolved by the dependancies listed in the
kext's Info.plist in an older version of MacOSX no longer seems to be
found by kextload. I know the symbols is still there, as nm /mach_kernel
shows it. Ideally, I'll be able to update Info.plist with vi and
go on my merry way..


Thanks,

Drew
                            ("`-''-/").___..--''"`-._
Sam Vaughan                  `6_ 6  )   `-.  (     ).`-.__.`)
                             (_Y_.)'  ._   )  `._ `. ``-..-'
email@hidden         _..`--'_..-_/  /--'_.' ,'
__________________________(il),-''  (li),'  ((!.-'

_______________________________________________
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: how to tell which symbols are exported?
  • Next by Date: RE: String compare
  • Previous by thread: Re: how to tell which symbols are exported?
  • Next by thread: statfs on link
  • Index(es):
    • Date
    • Thread