LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  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: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
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



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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration