From owner-freebsd-current@FreeBSD.ORG Sat Feb 3 21:53:03 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 453FE16A400 for ; Sat, 3 Feb 2007 21:53:03 +0000 (UTC) (envelope-from luping.nju@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id 0BD2413C48D for ; Sat, 3 Feb 2007 21:53:02 +0000 (UTC) (envelope-from luping.nju@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1180482wxc for ; Sat, 03 Feb 2007 13:53:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=peqUGFfX4qMIwL+XI8PcPxair6ZI3TSK4Ulzd+JAaTDjHMQnOIOEWZQe9wttcNPClL97v/dr28RjAmiSfArOmKAnDbzGmMkDUBMfiUwoeIljHnH0RD9KWYNe1ndP77YssWFuVql8znovmkyZ5IIwrtHyCvL918NfePqvyT5uNw0= Received: by 10.70.74.1 with SMTP id w1mr8636310wxa.1170538092966; Sat, 03 Feb 2007 13:28:12 -0800 (PST) Received: by 10.70.7.7 with HTTP; Sat, 3 Feb 2007 13:28:12 -0800 (PST) Message-ID: Date: Sat, 3 Feb 2007 16:28:12 -0500 From: "lu ping" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sleep in freebsd kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 21:53:03 -0000 Hey Folks, I have a question about making my kernel thread sleep for a while. I think I can use "tsleep", but the timeout for this call is only counted as system ticks (usually at millisecond granularity). However I want to make my "sleep" return in microsecond granularity. Does anybody know how to realize this? Thanks Luping