Re: Need to gain access to unexported symbols
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Ken Hornstein