Re: Microsecond resolution timers - final word

Stephen C. Tweedie (sct@redhat.com)
Wed, 28 Jul 1999 05:12:06 +0100 (BST)


Hi,

On Tue, 27 Jul 1999 18:44:19 +1000, Robert Norris
<box@box.halls.monash.edu.au> said:

>> If no interrupt and yes to these two, you could probably
>> do with a loop using usleep(20)

> Perhaps I haven't quite understood kernel programming as well as I
> should, but I was under the impression I can't use libc functions in
> the kernel?

The kernel offers a udelay() function which should fit the bill.

--Stephen

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