clear_wait() using thread address
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:from:to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:x-mimeole; bh=SAQoB/UmesHFEuhg1tGpJyNcRsCzkTNMAczg6UN9JtA=; b=FHcgVYUXiOmv3pRXSzlYQmAonn+wTQFwh34uhr68lIaFr3rNwE9tFLExqs6GvNnUrVUNv0g7Avc3XHu7nlCs6PFYbNwhNb7Gg1dD9qJ6EvAg+9GoItX7R4RkQDtfm3yo/NTCQA+Y9zlxh8mc4qjsdBhzzbdHqyx+8uksJhEfKKo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:x-mimeole; b=uv47ZfbhJ6rYvqJ810w87q5P4Sb3aYSMnADTjRrweKnwC6KcywdDcPZ1xgJwbCNWvYc4aiMtmETKZ3R4CaLlWbiPUGUyYhGW71gUH6tfVJ88jxCqJubOb1+cPdeCW02idvsEqgy2lPE6gv7kmrhS64OsSdQdU6DX1OvxjgFIGp0= Thread-index: Acg157y4aUtQR4c6SjehlMqmkQ/r7gARNk2wAKVAaYA= Hi, I've written a KEXT, wherein a thread, sleeping on wait_queue is invoked by another thread using clear_wait(). For this I keep a global thread safe structure for storing thread's address. What I want to know is, * Is there a possibility that my thread reference may become invalid, because of kernel's internal memory movement (such as to defragment, I'm just guessing)? * Is there a way of invoking selected process from wait_queue by its pid (like wake_up_process() in case of linux). 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/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Vishal Shetye