Re: Implementing sleep() inside the kernel

From: Jes Sorensen (jes@linuxcare.com)
Date: Mon Aug 14 2000 - 12:02:09 EST


>>>>> "Aamir" == Aamir Shaikh <ashak@lycos.com> writes:

Aamir> Hi, I'm trying to implement some sleep inside the kernel that
Aamir> would sleep for some microseconds before sending packets out on
Aamir> the network... Is there a way this can be implemented without
Aamir> using a dumb spin loop... I don't want to tie up my processor
Aamir> down...

I suggest you use a timer, grep some random code for add_timer to see
how to use it.

Jes

-
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/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:33 EST