Hi,

> Test code:
> --------------
> read()
> {
>    if(down_interruptible())
>            return error;
>    mdelay(10000);
>    up();
> }
> 
> With this code in place, I try to do a 'CTRL+C' when it hangs at that
> delay. It does not respond to my 'CTRL + C'.
> 
> Where am I missing the preemption thing in the kernel?

"Ctrl+C" (and other interrupts) should work even on a non-preemptive kernel. 
Preemption concept is meant for code executing in process context.

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to