LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-11-2007, 08:45 AM   #1
fallen3019
LQ Newbie
 
Registered: May 2007
Distribution: Suse 10.1
Posts: 11

Rep: Reputation: 0
Header files and page descriptors


Is there a way I can find out the size of page descriptors in my kernel?
I am using 2.6.16.13-4

Or is it a standard size? and if it is, what size is that?

Also, another thing,

I want to find the offset of a member of a structure within the kernel header file sched.h. (/usr/include/linux)
(i.e. I want to found out how many bytes the element 'tasks' is from the start of the task_struct which is declared in sched.h)

Is there a way I can do that?

Thanks.
 
Old 05-12-2007, 10:46 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by fallen3019
Is there a way I can find out the size of page descriptors in my kernel?
By page descriptor (in linux) you probably mean the type stuct page. So the “size” of a page descriptor is “sizeof(struct page)”.
 
  


Reply

Tags
descriptors, headers, kernel, page



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
how to use cookies from tcp header to bypass login page kamariz Linux - Security 1 01-19-2007 08:04 PM
Apache auto-indexing - add header to every page... kasl33 Linux - Software 0 01-05-2006 11:11 AM
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
Search results page header lhoff LQ Suggestions & Feedback 4 09-14-2004 09:09 AM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM

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

All times are GMT -5. The time now is 03:10 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