From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 22 12:41:52 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C8BA1065672 for ; Thu, 22 Oct 2009 12:41:52 +0000 (UTC) (envelope-from stas@deglitch.com) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 176C98FC12 for ; Thu, 22 Oct 2009 12:41:52 +0000 (UTC) Received: from stasss.yandex.ru (dhcp170-227-red.yandex.net [95.108.170.227]) by mx0.deglitch.com (Postfix) with ESMTPSA id 2198C8FC4F; Thu, 22 Oct 2009 16:41:50 +0400 (MSD) Date: Thu, 22 Oct 2009 16:41:44 +0400 From: Stanislav Sedov To: "Yan, Yeqing" Message-Id: <20091022164144.064b916b.stas@deglitch.com> In-Reply-To: <95608CFE3D0C064B8468DB61F8403BE04A0D4A1C5E@PDSMSX501.ccr.corp.intel.com> References: <95608CFE3D0C064B8468DB61F8403BE04A0D4A1C5E@PDSMSX501.ccr.corp.intel.com> Organization: Deglitch Networks X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Thu__22_Oct_2009_16_41_44_+0400_UCsdJ1VUlGggUdW6" Cc: "hackers@freebsd.org" Subject: Re: About FreeBSD syscall usage 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: Thu, 22 Oct 2009 12:41:52 -0000 --Signature=_Thu__22_Oct_2009_16_41_44_+0400_UCsdJ1VUlGggUdW6 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 22 Oct 2009 16:20:32 +0800 "Yan, Yeqing" mentioned: > kse_exit >=20 > kse_wakeup >=20 > kse_create >=20 > kse_thr_interrupt >=20 > kse_release >=20 > kse_switchin >=20 > I read $man kse, but I can not find any example about how to use it. I wr= ite some test codes to call these function but all these codes are failed. >=20 >=20 >=20 > mac_syscall >=20 > I read $man 3 mac, but I can not find the usage about mac_syscall functio= n. >=20 >=20 >=20 > thr_create >=20 > thr_suspend >=20 > thr_kill2 >=20 I fear there's no documentation on these syscalls exists. So for use infor= mation you'll have to refer to the actual source code of these syscalls/or and lib= c/libthr source code which makes uses of them. =20 >=20 > By the way, it is said =E2=80=9CI 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=E2= =80=9D >=20 > Does it mean the KSE syscall can be removed from FreeBSD 7.0? >=20 libkse (M:N threading) was default threading library on FreeBSD versions pr= ior to 7.0, and the default has changed to libthr (1:1 threading in FreeBSD 7). l= ibkse was completely removed in FreeBSD 8, but it is still functional on FreeBSD = 7.x. --=20 Stanislav Sedov ST4096-RIPE --Signature=_Thu__22_Oct_2009_16_41_44_+0400_UCsdJ1VUlGggUdW6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJK4FMNAAoJEKN82nOYvCd0Od4P/3Ka5/o3OF89/JIWKA/QmaYw aIYjLeFARk3zfbrC54ujArniQw4OmbU8peTEWCjZowL556ix03QCISUjBvgmOBln 7Sc2+w1tmwRgunW4RKa6b0qMfp2SMx2xR/YFqaJ7lahNonumZF4e4AtGsVnB9IWK QtwPITNvMAaa9JJiCbmjyT3NLJFvGm+Ewm6nSfo+5nSbU0Uw+PyueW5A2667pYAA 3ZeYCtAQksIfF0309qRbq5XsR+S2Ot4HmNBCgYdjUUWfV3XIgYfft5gh/NjRQecX taX8BTWgkAW+WDG9KfBRz4JMu9sh6f0tWaPXzRiV3WPni3UTEtdRnaZhzwLaHID/ gPQnSlxm86Ay3ZvRzX1cOJGtNHZKC2rFua0KP3fBYDG+cCPRr9XE/OiEWN4WT33F HbsUZvuy1gHAq5DAwVHmg+qP8MHsvtGwU3cHQ8ZtUaGBjBEVWepptLkSGl6XLcqr IYmZxyWS0QCOIGFQqHvT7rRfkXOE44S+A5kvJyscgU6QFD3+GhhQyYPLt/swgzTb KahwHyMOz9wvzPNAutXWT8QcRNSNbIgRZ66UcukQffulACbqlvv+08YYFVc2BmHJ xzX6PIYnUCmVVwPoWnM94Eo2BCumsl6ZcTZuRwvgPQf8vPuQUbUsZlAvVfFdlN0B raU/I5hXaCiVKY9q5NnH =vqQ4 -----END PGP SIGNATURE----- --Signature=_Thu__22_Oct_2009_16_41_44_+0400_UCsdJ1VUlGggUdW6--