On Mon, Apr 14, 2008 at 1:46 PM, Anil Kumar <chilukurianilkumar@xxxxxxxxx> wrote: > Hi, > > I am implementing a tcp relay as a linux kernel module and somebody told me > that I could use mdelay to optimize my design. I looked up on the internet > for some literature on where and how to use mdelay. However, I could not > find any. > > Can somebody please give me some pointers on how to use them or direct me to > certain links where I can learn it ? Thanks. > > -- > Chilukuri Anil Kumar Isn't mdelay(msecs) just a busy loop? http://kerneltrap.org/node/6857 Normally busy loops are used to syncronize with physical world results. For instance if you write to a device control register and per the spec. the status register is not valid for 5 msecs, then you would put a mdelay(5) between the write and the read. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ