From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 17:06:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CDBB1065673 for ; Tue, 28 Sep 2010 17:06:29 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1CFED8FC18 for ; Tue, 28 Sep 2010 17:06:28 +0000 (UTC) Received: by fxm9 with SMTP id 9so4781988fxm.13 for ; Tue, 28 Sep 2010 10:06:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.24.20 with SMTP id b20mr425093muj.81.1285693586810; Tue, 28 Sep 2010 10:06:26 -0700 (PDT) Sender: aimass@yabarana.com Received: by 10.223.68.140 with HTTP; Tue, 28 Sep 2010 10:06:26 -0700 (PDT) In-Reply-To: <568792.52464.qm@web95108.mail.in2.yahoo.com> References: <568792.52464.qm@web95108.mail.in2.yahoo.com> Date: Tue, 28 Sep 2010 13:06:26 -0400 X-Google-Sender-Auth: -VoynTJJBYHONiRO229ZbIi9mPk Message-ID: From: Alejandro Imass To: akash kumar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: preemption enable/disable routines X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 17:06:29 -0000 On Tue, Sep 28, 2010 at 10:10 AM, akash kumar wrote: > Hi, > > Can some one tell me the routines in freebsd to enable and disable preemption. > In linux we have preempt_enable and preempt_disable which does the > functionality. > > In case freebsd, doesnot have such routines can i used mtx_lock_spin() to do the > same? Very similar and for the mostly the same purpose. Install the man/doc and then; man mutex Best, Alejandro Imass > > Thanks, > Akash. > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >