How to disable all interrupts including scheduler

2009-11-09 Thread J.H.Kim
Hi, everyone I want to disable all terrupts including scheduler and run only one program at some time. I am goting to call device driver routine which includes above function. Whant command can I use in device driver routine? Thanks in advance. Best Regards, J.Hwan Kim -- To unsubscribe from

Re: How to disable all interrupts including scheduler

2009-11-09 Thread er krishna
In the 2.6 kernel, it is possible to turn off all interrupt handling on the current processor with either of the following two func- tions (which are defined in asm/system.h): void local_irq_save(unsigned long flags); void local_irq_disable(void); A call to local_irq_save disables