lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 13 Dec 2006 20:09:24 -0500
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Ariel Chÿffffe1vez Lorenzo <achavezlo@...oo.es>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: hrtimer.h

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


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ