putting userspace processes to sleep & Unresolved symbol :_wait_queue_alloc
putting userspace processes to sleep & Unresolved symbol :_wait_queue_alloc
- Subject: putting userspace processes to sleep & Unresolved symbol :_wait_queue_alloc
- From: "Jernej Azarija" <email@hidden>
- Date: Wed, 25 Jul 2007 10:31:07 +0200
- Thread-topic: putting userspace processes to sleep & Unresolved symbol :_wait_queue_alloc
Title: putting userspace processes to sleep & Unresolved symbol :_wait_queue_alloc
Hello!
In the kernel extension I'm currently writing, the kernel shall put the current process to sleep until a condition is met. I'm trying to achieve this using the wait_queue_* functions as poorly described here :
http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/scheduler/chapter_8_section_5.html#//apple_ref/doc/uid/TP30000905-CH211-BABBEEBI
After spending few hours to realize that I should use SDK 10.3.9 in order to be able to include <kern/wait_queue.h> , a run-time link problem with the wait_queue_* functions appeared :
===
kextload: extension build/Release/dev.kext/ appears to be valid
kld(): Undefined symbols:
_wait_queue_alloc
_wait_queue_assert_wait
_wait_queue_free
===
I'm now wondering what could be the reason, and, how to fix that. I'm suspecting this is some dependency issue, so I tried various combinations of editing the dictionary OSBundleLibraries. This is how it looks at the moment :
===
<dict>
<key>com.apple.kernel.bsd</key>
<string>6.0</string>
<key>com.apple.kernel.mach</key>
<string>7.9.9</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.0.0</string>
<key>com.apple.kpi.mach</key>
<string>8.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>8.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>8.0.0</string>
<key>com.apple.kernel.iokit</key>
<string>6.9.9</string>
</dict>
===
I'll be glad if someone could help me out fixing this linking issue or hint me a better approach to put some process on the wait queue.
Thanks,
Jernej.
===========
stdazi.com
_______________________________________________
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