mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: "Ariel Chÿffffe1vez Lorenzo" <achavezlo@yahoo.es>
Cc: linux-kernel@vger.kernel.org
Subject: Re: hrtimer.h
Date: Wed, 13 Dec 2006 20:09:24 -0500	[thread overview]
Message-ID: <1166058564.1785.17.camel@localhost.localdomain> (raw)
In-Reply-To: <248625.39629.qm@web26101.mail.ukl.yahoo.com>

On Thu, 2006-11-30 at 01:42 +0100, Ariel Chÿffffe1vez Lorenzo wrote:
> Hi,
> 
> Since the kernel 2.6.18 has incorporated the high
> resolution timer itself, I'm trying to test it, but on
> my GNU/Debian I can't figure out how to include
> hrtimer.h, that is on /usr/src/linux/include/, the
> headers.
> 
> I use the following command to try to compile it.
> 
> gcc -D__KERNEL__ -I /usr/src/linux/include ex.c
> 
> 
> ex.c is just the inclusion of hrtimer.h
> 
> #include <linux/hrtimer.h>
> int main()
> {
>  return 0;
> }
> 

As stated, the kernel headers have nothing to do with user space code.

But I'll educate you a little more.

First, high resolution timers are not in 2.6.18.  The hrtimers are, but
the actual meat that makes them high resolution wont be in until
(hopefully) 2.6.20 (or perhaps a little later).

To use the high resolution timers (when they are in), you don't need to
do anything special.  nanosleep, and all the posix timers will get them
automatically.

-- Steve



      parent reply	other threads:[~2006-12-14  1:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-30  0:42 hrtimer.h Ariel Chÿffffe1vez Lorenzo
2006-11-30 12:06 ` hrtimer.h Arjan van de Ven
2006-12-14  1:09 ` Steven Rostedt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1166058564.1785.17.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=achavezlo@yahoo.es \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome