Shu Wu wrote:
> Hi, folks! Can anyone explain to me how ulwp_t relates to its klwp_t? By 
> now I just know klwp_t and kthread_t are linked to each other, and 
> kthread_t are a linked list in proc_t. And it seems ulwps are managed in 
> uberdata. But I can't find in ON source how ulwp_t is related to klwp_t. 
> Isn't there a direct reference between them? Thanks a lot!
> 

klwp_t is a kernel lwp - a kernel thread that can go into userland,
receive signals, etc.

http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/klwp.h#193

A ulwp_t is the details of managing a thread at user level in libc.

http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/inc/thr_uberdata.h#653

There really isn't a direct reference between the two.

The only place there's much direct knowledge is through the schedctl stuff.

http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/schedctl.h#sc_shared_t

- Bart


-- 
Bart Smaalders                  Solaris Kernel Performance
barts at cyber.eng.sun.com              http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."

Reply via email to