[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sleeping and waking up a user process from the kernel
Hi Devvrat,
> How do you make a use process go to sleep and then wake it up again from
> the kernel. I did this in a module
....
> but when i run the user space process it says segmentation fault. Can
> anyone explain how to do this. An example will be of great help
In general I think it's better to use
wait_event_interruptible() and wake_up_interruptible()
And in particular in this case is quite difficult to understand your
problem. How many process do you manage this way? which is that condition?
it could be changed in other moment?
bye
--
-gaspa-
-----------------------------------------------
--------- Powered by Debian GNU/Linux ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ