Asserting uniprocessor
Asserting uniprocessor
- Subject: Asserting uniprocessor
- From: Godfrey van der Linden <email@hidden>
- Date: Thu, 15 Apr 2010 12:39:37 +1000
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden