DragonFly submit List (threaded) for 2007-08
DragonFly BSD
DragonFly submit List (threaded) for 2007-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [PATCH] [V2] add options to ps(1) to display lwp data


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 15 Aug 2007 09:52:20 +0200

Matthew Dillon wrote:
I think we've overloaded that field too much already. The field is called 'tid' and tid means thread id and thread id means the LWP id.

    If we want to export a pointer to the kernel thread structure then we
    need to do it with a new field.

It wasn't ment to be a pointer, just an identifier. And the td pointer is a perfect identifier. Of course, it doesn't format as nicely as a small number, but so what. pid == -1 means kernel, tid *always* means thread identifier.


cheers
 simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]