LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 07-18-2010, 09:07 AM   #1
anil007523
LQ Newbie
 
Registered: Jul 2010
Posts: 16

Rep: Reputation: 2
thread_size


Hi.. can any one say where is this thread_size functionality is declared in the kernel.. please help me out.
thanks for the previous answer
but can you say is this is written in directly asm or written in C only

Last edited by anil007523; 07-19-2010 at 12:43 AM.
 
Old 07-18-2010, 03:36 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,199

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Which thread_size ? ? ?

cd linux-2.6.32.6/
grep -nR thread_size ./*
Code:
./arch/cris/include/arch-v32/arch/hwregs/iop/asm/iop_mpu_defs_asm.h:175:#define regk_iop_mpu_rw_thread_size               0x00000004
./arch/cris/include/arch-v32/arch/hwregs/iop/iop_mpu_defs.h:187:  regk_iop_mpu_rw_thread_size              = 0x00000004,
./drivers/net/ucc_geth.c:273:				  u32 thread_size,
./drivers/net/ucc_geth.c:293:			    qe_muram_alloc(thread_size, thread_alignment);
./drivers/net/ucc_geth.c:346:				  u32 thread_size,
./drivers/net/ucc_geth.c:374:					 thread_size);
 
Old 07-18-2010, 07:56 PM   #3
nini09
Member
 
Registered: Apr 2009
Posts: 916

Rep: Reputation: 67
The thread size is relative to CPU architecture. For x86, it is in include/asm-x86/page_32.h.
#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
thread_size anil007523 Programming 1 07-18-2010 10:34 AM


All times are GMT -5. The time now is 09:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration