Re: sleeping and waking up a user process from the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux