Skip to contentSkip to conversation

Thread specific data

DISCUSSION Anumula Venkat 2 participants 2 messages Dec 16, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

Hello Friends,

Can somebody help in knowing how to access thread
data structures on kernel side.i.e accessing thread specific data in stack segment.

Regards
Venkat

=====
'Arise, awake and stop not till the GOAL is reached' -- Swami Vivekananda

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#1 lore raw
Quoted 5 lines · Anumula Venkat

Hello Friends,

Can somebody help in knowing how to access thread
data structures on kernel side.i.e accessing thread specific data in stack segment.

The Linux kernel has a unified process/thread concept so there isn't really a 'thread data structure' in the kernel. See linux/sched.h for details.

For userspace stack this is handle by glibc/linuxthreads. On i686 it uses sys_modify_ldt to get per-thread segments, not sure how it is handled on older CPUs / other architectures.

Christoph

Signature · 5 lines
Of course it doesn't work. We've performed a software upgrade.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/