This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
How to recognise that scheduler started.
- From: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 2 Jul 2003 17:44:28 +0900
- Subject: [ECOS] How to recognise that scheduler started.
Hi, all;
In my driver code, there is a routine which I would like to use
both at intialization and after initialization such like in
the follwoing manner;
routine()
{
if (scheduler_started)
use_kernel_serivices(); // e.g. wait on semaphore
else
no_use_kernel_serivices();
}
It seems that kernel doesn't provide a grobal variable or an external
function which is equivalent to 'scheduler_started' above.
Is there any way? Please give me your sugestion.
Motoya Kurotsu
Allied Telesis K.K.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss