Re: lck_mtx_assert
Re: lck_mtx_assert
- Subject: Re: lck_mtx_assert
- From: Quinn <email@hidden>
- Date: Thu, 23 Nov 2006 11:02:58 +0000
At 12:58 +0000 22/11/06, Nithin prakash wrote:
I am developing an NKE on MAC OS X 10.4.4 on a PowerG5 machine.
I want to use kenel locks in that NKE. I have included
kern/locks.h file and linked that with com.apple.kpi.libkern. All
locking functions except "lck_mtx_assert" is working fine.While
loading NKE , it is showing "lck_mtx_assert" as undefined symbol.
lck_mtx_assert is only exported by the 'unsupported' KPI. Thus, you
can't link to it from production code. If you need to link to it for
debugging, add "com.apple.kpi.unsupported" to the OSBundleLibraries
dictionary in the Info.plist for the debug build only. I show how to
do this in the MFSLives sample.
<http://developer.apple.com/samplecode/MFSLives/index.html>
While writing MFSLives I asked kernel engineering why this routine
wasn't supported, but I I never did get a straight answer. Do you
need it in your production build? If so, why?
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/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