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:	Mon, 5 Mar 2007 10:06:56 -0800
From:	"Nish Aravamudan" <nish.aravamudan@...il.com>
To:	Mockern@...dex.ru
Cc:	linux-kernel@...r.kernel.org
Subject: Re: timeout = 1 millisecond for wait_event_timeout

On 3/5/07, Mockern <Mockern@...dex.ru> wrote:
> Hi,
>
> I have a question. How can I make timeout = 1 millisecond for wait_event_timeout
> function?
>
> Something like (HZ/1000)*x?

You mean in a HZ-independent way?

Use msecs_to_jiffies().

Note, that if HZ==1000, you can do wait_event-( , ,0); and you will
get as close to 1 millisecond as possible (there are no guarantees for
schedule_timeout(), the underlying function to wait_event_timeout()).

Thanks,
Nish
-
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