From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 11 01:17:43 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 358511065670 for ; Sun, 11 Sep 2011 01:17:43 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id E91528FC16 for ; Sun, 11 Sep 2011 01:17:42 +0000 (UTC) Received: by yxk36 with SMTP id 36so2998348yxk.13 for ; Sat, 10 Sep 2011 18:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=h8VZ72jXtORKkhiw8mKU8dB4xVOXFJeAI0hQrWt9Bks=; b=Tmw46QIuXJJInE6yZkoiPkZPBtrvlfkDN8NmV7H1nD0Rb7vXDv59Gpzd+hAJste6C5 Lo4xHlF381Ny4uDhbhN91xKe+ajMZBcK/khYpGl05AHoRcokAJ3NOu2Tm60ch4QZuNAK 7y9yJhyrDkZck3IyXrAM2goaP/LRI9O63smE8= MIME-Version: 1.0 Received: by 10.236.173.131 with SMTP id v3mr19568314yhl.112.1315703862008; Sat, 10 Sep 2011 18:17:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.236.103.6 with HTTP; Sat, 10 Sep 2011 18:17:41 -0700 (PDT) In-Reply-To: <2778D90F-F718-446E-8ABB-627790F00A93@gmail.com> References: <023BD0FF-053C-4DCB-81EA-5D69B2411819@gmail.com> <2778D90F-F718-446E-8ABB-627790F00A93@gmail.com> Date: Sun, 11 Sep 2011 09:17:41 +0800 X-Google-Sender-Auth: J78OXOpszyRrtSiz0LpG9akUzFk Message-ID: From: Adrian Chadd To: Riccardo Cattaneo Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel timers infrastructure X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2011 01:17:43 -0000 On 11 September 2011 09:02, Riccardo Cattaneo wrote: > Of course, the module from which I'm calling them must be already loaded and initialized, isn't it? > Riccardo Well, yes - but then, you can just add something to the module load code to start off the callout. There are race conditions to keep in mind though - the callout may just about to be in-play when you go to remove it. The callout manpage points out these situations under "Avoiding Race Conditions." Adrian