From owner-freebsd-questions@FreeBSD.ORG Wed Oct 21 14:22:32 2009 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 B4C86106566B for ; Wed, 21 Oct 2009 14:22:32 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5E9D28FC20 for ; Wed, 21 Oct 2009 14:22:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.14.3/8.14.2) with ESMTP id n9LELcxh001414; Wed, 21 Oct 2009 09:21:53 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bweZLjy0JzZ5; Wed, 21 Oct 2009 09:20:03 -0500 (CDT) Received: from archangel.daleco.biz (ezekiel.daleco.biz [66.76.92.18]) by ezekiel.daleco.biz (8.14.3/8.14.3) with ESMTP id n9LEHdBp001308; Wed, 21 Oct 2009 09:18:02 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4ADF1802.5090700@daleco.biz> Date: Wed, 21 Oct 2009 09:17:38 -0500 From: Kevin Kinsey User-Agent: Thunderbird 2.0.0.23 (X11/20090929) MIME-Version: 1.0 To: "Yan, Yeqing" References: <95608CFE3D0C064B8468DB61F8403BE04A0D46D585@PDSMSX501.ccr.corp.intel.com> In-Reply-To: <95608CFE3D0C064B8468DB61F8403BE04A0D46D585@PDSMSX501.ccr.corp.intel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@FreeBSD.org" Subject: Re: Question about FreeBSD syscall usage 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: Wed, 21 Oct 2009 14:22:32 -0000 Yan, Yeqing wrote: > Hi: > I'm from Intel China. Our project use FreeBSD 7.0 > and I have some questions about the FreeBSD syscall. > I don't know how to use these syscall below. > Is there having some doc or example about how to use these syscall? > > kse_exit > kse_wakeup > kse_create > kse_thr_interrupt > kse_release > kse_switchin > > mac_syscall > > thr_create > thr_suspend > thr_kill2 > > Thank you very much! > > Best Regards > Yan, Yeqing Hello Yeqing, You might want to write to "hackers@freebsd.org" ... ... some of those guys *wrote* these syscalls. However, since it's a question, I'll take a stab at it. Have you read: $man kse $man 3 mac $man libthr ? Also, see www.freebsd.org/kse/ However, I think that KSE was used in 5.x and 6.x and then dropped in favor of a 1:1 threading model when 7.0 was released (I'm sure some "hacker@" can correct this information if I'm wrong). I hope this is helpful to you. Kevin Kinsey