Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between delay and DELAY in the NetBSD ported drivers?

0
Posted

Whats the difference between delay and DELAY in the NetBSD ported drivers?

0

The NetBSD drivers have two different delay functions, both of which take an argument of microseconds. From the NetBSD docs, DELAY() is reentrant (doesn’t modify any global kernel or machine state) and is safe to use in interrupt or process context. HOWEVER, Neutrino’s version of delay is in milliseconds so this could result in very long timeouts if used directly as is in the drivers. We’ve defined DELAY to do the appropriate thing for a microsecond delay, so all NetBSD ported drivers should macro delay to DELAY.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123