site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HvFNHATYhpwL8w9GzqxvpegSHDoXj3ymlJa/xBVsOXQ=; b=g+ITqMp57M+X6evFX+nX4QZuiRV0BFSSGJw9um4Sc/7u0E9rzVkQ647JY1D6/WLXec uoHh7IEEvLICupc6hSW0yYweQdYcJdqT+2CznboPD+WwlLHs9LWTgNJR5Ivo1sCJpO46 3OI7qMpTKa9j58fL3bm4Hv7LFqvFwUeQMOf7A= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=G2Oiso3gEvshvsCKR9KqQifLwqoih0Pcm6M3la82qiQp/lOYJk6O31hFxZLeJt3Kvt CNcBEODojyX9vB8eAJH3WUQ45ldyFucBKLa6euAWnQmeG3mmK2V1EAYKc/Hd7/eavxF/ DHnHxbElwldHC44u1q/fNkcd2AIJM6XwdTigI= Hi, you should read this http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFunda... On Wed, Jun 25, 2008 at 1:50 PM, Vanessa Li <Vanessa_Li@digidesign.com> wrote:
Hi,
I am trying to use a spinlock in my kext and am having problems with loading it. I am calling the initialization functions and using lck_spin_lock() and lck_spin_unlock(). Here is the error message:
kextload: resolving dependencies for kernel extensions with validation and authentication failures
kextload: extension /System/Library/Extensions/MyKext.kext/ appears to be loadable
kextload: loading extension /System/Library/Extensions/MyKext.kext/
kld(): Undefined symbols:
_lck_attr_alloc_init
_lck_attr_free
_lck_grp_alloc_init
_lck_grp_attr_alloc_init
_lck_grp_attr_free
_lck_grp_attr_setstat
_lck_grp_free
_lck_spin_alloc_init
_lck_spin_free
_lck_spin_lock
_lck_spin_unlock
kextload: kld_load_from_memory() failed for module /System/Library/Extensions/MyKext.kext/Contents/MacOS/MyKext
kextload: a link/load error occured for kernel extension /System/Library/Extensions/MyKext.kext/
However, I am able to find these symbols when doing the command nm /mach_kernel | less.
I am also including kernel.frameworks in my project.
Any ideas what's wrong?
Thanks.
_______________________________________________ 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/openspecies%40gmail.com
This email sent to openspecies@gmail.com
-- -mmw _______________________________________________ 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