Re: Re: timerfunction-delay

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

 



Hi...

> Can you give an example for a non-sleeping delay function?

This is the best I found...in include/linux/delay.h, you will see 
mdelay(). It uses udelay() that is defined in include/asm-i386/delay.h.

> Are such functions a solution to "schedule while atomic" errors
> caused by the use of schedule_timeout() in atomic operations?

No....the best you can do inside atomic code path is busy waiting, not 
scheduling out. Scheduling out will change current active process and 
that is certainly something you want to avoid.

regards

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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