From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 14:23:34 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 1A4C3106566C for ; Tue, 28 Sep 2010 14:23:34 +0000 (UTC) (envelope-from akashb503@yahoo.co.in) Received: from n14-vm0.bullet.mail.in.yahoo.com (n14-vm0.bullet.mail.in.yahoo.com [202.86.5.219]) by mx1.freebsd.org (Postfix) with SMTP id 393D48FC18 for ; Tue, 28 Sep 2010 14:23:32 +0000 (UTC) Received: from [202.86.4.171] by n14.bullet.mail.in.yahoo.com with NNFMP; 28 Sep 2010 14:10:38 -0000 Received: from [203.104.18.53] by t2.bullet.in.yahoo.com with NNFMP; 28 Sep 2010 14:10:38 -0000 Received: from [127.0.0.1] by omp105.mail.in2.yahoo.com with NNFMP; 28 Sep 2010 14:10:38 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 717287.82019.bm@omp105.mail.in2.yahoo.com Received: (qmail 53166 invoked by uid 60001); 28 Sep 2010 14:10:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1285683038; bh=osg5e/qCk0Yrd3AMswjXGc2FBn19Lc/dfdkj7jny1Dc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ZunQKuUab1u9fsV13aiHZ/ju02kGZU9OW0pwdtk9e788F+6DbqZKLoRrOg/g01XCFA1+BFwbeACjwi1c72xiC/nIB593L0fNBaraRGBjzUAdCY0Gfit6Pv6LQSEZJXwEVG9Me8fLAmzFiHoKjdkAFUyaHd3L216xILvAOfLDCz0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=3Pvpc5nJoCaj3FhWdGIsOEV0AzwrsZCW85STetU5vbOOSkk3S+a3qEHSHA8yM6U4t5qtrmU6v2kl95NCaBxHD4bcqiLsFkzDjgZVbafD4i/8EGEkebIrPwpBxEIDBhOoYrHoJmONGv+KbQ91TGnNXVjy3Meo9VK3cL/pV6+dR48=; Message-ID: <568792.52464.qm@web95108.mail.in2.yahoo.com> X-YMail-OSG: 0C4lDd4VM1kCe9nCPTeyMUumhjR2Y6sehNlt6pU1FwjypQ_ eTrOV.EfsObLdnBaAn3_6cdMAdDlifUD7vVtVl0dW9FKS.Pf3eCX3K7cYog7 7MpSV_P8UlO0l50zKcO7ayXRvGTsmuhRqoY59IgKq75k14KIzcKAEkceWkpA kIPThOu_abYM0FANr8KamSYJ1fGHGmgHmkFoQ Received: from [122.172.189.43] by web95108.mail.in2.yahoo.com via HTTP; Tue, 28 Sep 2010 19:40:38 IST X-Mailer: YahooMailRC/497 YahooMailWebService/0.8.105.279950 Date: Tue, 28 Sep 2010 19:40:38 +0530 (IST) From: akash kumar To: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 28 Sep 2010 16:00:36 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 14:23:34 -0000 Hi,=0A=0ACan some one tell me the routines in freebsd to enable and disable= preemption.=0AIn linux we have preempt_enable and preempt_disable which do= es the =0Afunctionality.=0A=0AIn case freebsd, doesnot have such routines c= an i used mtx_lock_spin() to do the =0Asame?=0A=0AThanks,=0AAkash. =0A=0A= =0A