LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   thread_size (https://www.linuxquestions.org/questions/linux-kernel-70/thread_size-820525/)

anil007523 07-18-2010 09:07 AM

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

knudfl 07-18-2010 03:36 PM

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);


nini09 07-18-2010 07:56 PM

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)


All times are GMT -5. The time now is 08:24 PM.