site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com I'm looking for a way to monitor exceptions raised inside a specific user task and fix them if needed. I already done this with a user daemon - using task_set_exception_ports - but this time I want to do it from the kernel side. Is it possible to "forward" an exception port to my IOUserClient ? (using IOConnectSetNotificationPort/IOUserClient::registerNotificationPort ?) Is there a way to setup an exception port directly from a IOService without using an IOUserClient ? S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ 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... At 17:47 +1000 3/10/08, nicolas vide wrote: If you already have this running as a daemon, what's the incentive for moving it into the kernel? In general we recommend that folks keep as much code out of the kernel as possible, especially for things like exceptions, which are usually not performance critical. You might be able to make some progress with this, but it really runs counter the spirit of that API. No. Firstly, the routine you need, task_set_special_port, is not part of the KPI. Secondly, that routine takes a task_t as its first parameter, and IOServices have no notion of tasks. This email sent to site_archiver@lists.apple.com