[stgt] [PATCH 08/12] Use bs_finish in thread per target

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Mon Oct 18 03:01:03 CEST 2010


On Thu, 14 Oct 2010 21:48:17 -0700
Chandra Seetharaman <sekharan at us.ibm.com> wrote:

> Hi Tomo,
> 
> On Tue, 2010-10-12 at 10:54 +0900, FUJITA Tomonori wrote:
> > On Mon, 11 Oct 2010 18:45:23 -0700
> > Chandra Seetharaman <sekharan at us.ibm.com> wrote:
> > 
> > > I did my coding/testing/debugging on RHEL 6. There is no direct support
> > > for this system call :(, hence I used syscall (man page also suggests
> > > so).
> > 
> > I see. Seems that glibc doesn't provide the wrapper.
> > 
> > One more related question: can we use pthread_kill() instead of
> > SYS_tgkill?
> 
> I changed it to be tgkill instead of pthread_kill to make that function
> totally opaque about whom it is interacting with. This way the function
> doesn't know if it calling the main thread or any sub threads, it also
> doesn't explicitly use the global bs_finish data structure.

tgkill is linux specific? If possible, I want to avoid linux specific
things because I know one BSD tgt user at least. :)
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list