Re: Need to gain access to unexported symbols
Re: Need to gain access to unexported symbols
- Subject: Re: Need to gain access to unexported symbols
- From: Ken Hornstein <email@hidden>
- Date: Tue, 13 Jul 2010 12:40:46 -0400
>Let's start with simple - very simple func _boottime_sec() - it's not
>exported - how can I still link with it?
I can't help you with in_pcblookup, but regarding boottime_sec(); are you
sure you have to have THAT exact function? Or could you live with something
that does the exact same thing? For example, you can call sysctls directly
from kexts, and the kern.boottime sysctl returns the value of
boottime_sec.
If you're asking how to link arbitrary function <X>, where <X> is not
exported, well, you have (as far as I can tell) two options:
- Hope that it's available in something like the Unsupported kext, or
- you lose.
I will note that there is already a supported framework to plug in
something like a network or interface filter; I'd try to use that as
much as possible.
--Ken
_______________________________________________
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