LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-19-2011, 11:35 PM   #1
corone
Member
 
Registered: Jul 2009
Posts: 46

Rep: Reputation: 1
The size of struct thread_info in the ARM architecture?


Hi,

What bytes is the size of struct thread_info in the linux kernel for the ARM architecture?
Code:
printk("struct thread_info size : %d\n", sizeof(struct thread_info));
Is it different for each versions of the ARM architecture?

Thank you.
 
Old 10-20-2011, 09:55 AM   #2
rulingminds
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Rep: Reputation: Disabled
thread_info for ARM is defined in <arch/arm/include/asm/thread_info.h>. There is only one thread_info structure for all the ARM versions.
 
Old 10-21-2011, 12:15 AM   #3
corone
Member
 
Registered: Jul 2009
Posts: 46

Original Poster
Rep: Reputation: 1
Thank you for your reply.

I want to know the size of struct thread_info for the ARM architecture.
 
Old 10-21-2011, 08:04 AM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,652

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Simply #include the appropriate header file from the kernel source tree into your program, and use the sizeof operator against the structure typedef.

This is why kernel header files are made available. These will be the actual structure definitions used by the kernel on that machine as-built. Although userland doesn't have direct access to the structures themselves, you are free to know all about them.

Last edited by sundialsvcs; 10-21-2011 at 08:05 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] is there multicore scheduling support for ARM architecture coolsandyforyou Linux - Software 1 12-08-2010 02:59 AM
Installing xfree86 on Technologic Ts-7300(Of architecture ARM) ) board shearer Linux - Embedded & Single-board computer 1 02-03-2008 07:52 AM
Installing xfree86 on Technologic Ts-7300(Of architecture ARM) ) board shearer Linux - Laptop and Netbook 2 02-03-2008 06:49 AM
ARM a8 architecture corbis_demon Programming 0 10-16-2005 07:31 AM
g++ and wrong struct member addresses / struct size misreporting sonajiso Linux - General 5 05-22-2004 10:16 PM


All times are GMT -5. The time now is 03:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration