Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2009 08:34:31 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        "Yan, Yeqing" <yeqing.yan@intel.com>, "hackers@freebsd.org" <hackers@freebsd.org>
Subject:   Re: About FreeBSD syscall usage
Message-ID:  <200910220834.32082.jhb@freebsd.org>
In-Reply-To: <95608CFE3D0C064B8468DB61F8403BE04A0D4A1C5E@PDSMSX501.ccr.corp.intel.com>
References:  <95608CFE3D0C064B8468DB61F8403BE04A0D4A1C5E@PDSMSX501.ccr.corp.intel.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thursday 22 October 2009 4:20:32 am Yan, Yeqing wrote:
> Hi:
> 
> I’m from Intel China. Our project use FreeBSD 7.0. I have some question 
about syscall usage but I think mail to the wrong address before.
> 
> Is there having any doc or example about how to use these syscall?
> 
> 
> 
> kse_exit
> 
> kse_wakeup
> 
> kse_create
> 
> kse_thr_interrupt
> 
> kse_release
> 
> kse_switchin

These are used internally to implement pthreads when using KSE.  Probably the 
only useful documentation would be the source for libkse.

> I read $man kse, but I can not find any example about how to use it. I write 
some test codes to call these function but all these codes are failed.
> 
> 
> 
> mac_syscall
> 
> I read $man 3 mac, but I can not find the usage about mac_syscall function.

This one I am not sure of.

> thr_create
> 
> thr_suspend
> 
> thr_kill2

These are used by libpthread to implement pthreads (libthr in < 7.x).  The 
best documentation for these would be the source to libpthread as well.

> By the way, it is said “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”
> 
> Does it mean the KSE syscall can be removed from FreeBSD 7.0?

It has been removed entirely from 8.0.  It is still present in 7, but it is 
deprecated and not the default.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910220834.32082.jhb>