site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=VG6xIP49X9L5AniDqDzjIPq5o0lQKb+jQYrhBF2QlJQ=; b=GNJFT7XCoz3CEnW/wyirrzfqsXI9vXILwus3g5m5/aMJj1AtZeS6iwR7EfpM7dsvJR Au4c1UT3kuFEpt4ceOGUJoq0JQqzOy5TFwvz5OfWQrYeE0LqFsOXMBQ64g1jYEsstqhS ZSqRKu6huofVQRKwO+HJgSETN2A3O1MO392xU= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=mcT7ITNLWUdHl8tiTTMtjDm0WzqUgKPUjFbhO8KE0U30xhkLhbh7D3qFhD524+zTps fnVJcGGV8Q3sFjOTFQPw5r9+OhsaxDrzkrbzuKxFY13/mBZan6cWuUc5mL48l8+ffZaS QFf1P3oc71XIu/pl//Y9V88Dj+Cp2YYx7uISY= On Mar 10, 2010, at 10:55 PM, Damien Sorresso wrote:
Also, it'd be up to you to process the message sent to the port and invoke your callback routine. The structure of the messages sent from IOKit to userspace clients is definitely not public.
What about invoking IODispatchCalloutFromMessage() on the received message to trigger the callback from the GCD handler? --- Dispatches callback notifications from a mach message. void IODispatchCalloutFromMessage(void *unused, mach_msg_header_t *msg, void *reference ); Parameters: unused - Not used, set to zero. msg - A pointer to the message received. reference - Pass the IONotificationPortRef for the object. Discussion: A notification object may deliver notifications to a mach messaging client, which should call this function to generate the callbacks associated with the notifications arriving on the port. --- --- http://es.linkedin.com/in/joelreymont _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com