[PATCH] [V2] add options to ps(1) to display lwp data
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Wed Aug 15 00:53:18 PDT 2007
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 / \
More information about the Submit
mailing list