site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com G'day, All. I've just written some sweet and really, efficient non-locking queue code that will fall on its face if it run on a pre-emptible uniprocessor under unusual circumstances. Right now I don't need to productise the code, but I'd like to add a fail clause to my start routine to bail if the environment is bad. Is there an approved way of doing this? Something like this psuedo code if (onUniprocessor && kernelPre-emption) { kprintf("This driver will not work on this machine\n"); return false; } Godfrey _______________________________________________ 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)
-
Godfrey van der Linden