lkml.org 
[lkml]   [2000]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Implementing sleep() inside the kernel
On Mon, Aug 14, 2000 at 09:11:14AM -0700, Aamir Shaikh wrote:
> Hi,
> I'm trying to implement some sleep inside the kernel that would sleep
> for some microseconds before sending packets out on the network...
> Is there a way this can be implemented without using a dumb spin loop...
> I don't want to tie up my processor down...

If you sleep for more than 1/HZ seconds you can use timers. If you don't
you have to use udelay, at least currently.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.046 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site