-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've *never* used semaphores in-kernel. I looked around and the apple documentation (which I'll bet you're more familiar with than I am) suggests current_task() should be used to obtain the task_t for semaphore_create(). The Apple documentation in question is here: http://developer.apple.com/documentation/Darwin/Conceptual/ KernelProgramming/synchronization/chapter_15_section_2.html I haven't yet found the MACH API reference that Apple refers to on their website. XCode doesn't seem to know much about this either. Do any of you know where to actually find the MACH API reference Apple refers to on several of their website here: http://developer.apple.com/documentation/Darwin/Conceptual/ KernelProgramming/About/chapter_1_section_5.html#//apple_ref/doc/uid/ TP30000905-CH204-CHDHDDGC (My xnu-517 sources do not contain an API reference) - -Jeff On Dec 1, 2003, at 3:16 PM, Matt Jaffa wrote: Hi, I am trying to use semaphores within the KERNEL, the normal sem_init, etc. I have discovered have been disabled from being able to use inside the KERNEL, So I am looking at the semaphore_create(.......) that can work within the kernel, but it is asking for a task_t task. Now how do i get that, mach_task_self() doesn't work inside the kernel either. I want the task of the KEXT im writing to be put in that position. Any ideas? Thanks _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored. - -- Craft custom packets from the comfort of your home. http://nemesis.sourceforge.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQE/y+I+Eqr8+Gkj0/0RAs5EAJ48wACJHMHHB4u6evrXXHWB8sH0YQCfQ74z AYXBomVyDCAeYc3cssXBxeM= =ZY2k -----END PGP SIGNATURE----- _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Jeff Nathan