kallsyms_lookup_name

2011-08-06 Thread Venkatram Tummala
Hi, I need to use some unexported kernel symbols in my kernel module but in the particular kernel version i am based on (2.6.18 - RHEL 5.7), kallsyms_lookup_name is not exported and there is no kallsyms_on_each_symbol in this kernel. And I can't change the kernel owing to reasons i have no

difference between io_schedule() and schedule()

2011-08-06 Thread Rajat Sharma
Hi All, What is the difference between io_schedule() and schedule(), is io_schedule() more restrictive to shedule only I/O bound processes or it just favours I/O bound processes. Any documentation link would be great help. Thanks, Rajat ___

How to get current core id in kernel source

2011-08-06 Thread J.Hwan Kim
Hi, everyone I wish to get the current core id in which the code is being processed, in device driver code. What function or global variable can I use ? Thanks in advance. Best Regards, J.Hwan Kim ___ Kernelnewbies mailing list

Re: Creating sparse file on XFS and EXT3 has different results

2011-08-06 Thread mani
Dear Ashish, The ls uses st_size while du uses st_blocks. try using the ls -ls it will give you both the o/p's . Thanks Manish On Fri, Aug 5, 2011 at 7:45 AM, Ashish Sangwan ashishsangw...@gmail.comwrote: I write 1 program to create sparse file which contains alternate empty blocks and data

Re: Debugging the linux kernel core dump

2011-08-06 Thread Mulyadi Santosa
Hi Akash... On Sat, Aug 6, 2011 at 12:06, Akash email2akashj...@gmail.com wrote: Thanks Malyudi. Thats sounds like a reasonable approach. I did try to search kernel-debug RPMs for my kernel could not find any. May be I should just keep looking. AFAIK too, in Ubuntu and its derivatives, kernel

Re: Question on Alignment requiremnet

2011-08-06 Thread Mulyadi Santosa
On Sat, Aug 6, 2011 at 23:59, subin gangadharan subingangadha...@gmail.com wrote: Hi All, I have some doubts on the alignment requirement.It would be really helpful,if someone can shed some light on this. Why there are so many different types of alignment like 4 byte, 8 byte,16 byte ?.My

Re: Reserve physical page

2011-08-06 Thread Thayumanavar S
Hello everyone,    I am wondering whether it is possible to reserve a particular physical page in the kernel. The GFP pages can start from _any_ location, and i cannot find a way to specify a starting pfn. I need a few dozen pages to store a bitmap starting at a particular physical page

Re: Compiling kernel module ...

2011-08-06 Thread Abu Rasheda
On Fri, Aug 5, 2011 at 5:10 PM, Akash email2akashj...@gmail.com wrote: Use #if like * *#define KERNEL_VERSION(a,b,c) (((a) 16) + ((b) 8) + (c)) #if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 33) // New socket create function #else // Old socket create function

Re: Compiling kernel module ...

2011-08-06 Thread Greg KH
On Sat, Aug 06, 2011 at 11:34:46AM -0700, Abu Rasheda wrote: On Fri, Aug 5, 2011 at 5:10 PM, Akash email2akashj...@gmail.com wrote: Use #if like #define KERNEL_VERSION(a,b,c) (((a) 16) + ((b) 8) + (c)) #if LINUX_VERSION_CODE = KERNEL_VERSION(2, 6, 33)    // New

Re: Compiling kernel module ...

2011-08-06 Thread Greg KH
On Sat, Aug 06, 2011 at 11:52:06AM -0700, Abu Rasheda wrote: Get the code merged upstream so you never have to worry about it again. Greg, my issue is basic. I am talking about change in parameter .create of net_proto_family struct. It seems that Scientific Linux had it back

One more question on alignment

2011-08-06 Thread subin gangadharan
Hi, This is a text excerpt from the article [1]. Below paragraph I didn't understand quite well.Mainly in bold letters.Could anybody please explain how this will lead to an infinite loop. Atomicity All modern processors offer atomic instructions. These special instructions are crucial for

Re: One more question on alignment

2011-08-06 Thread Daniel Baluta
On Sat, Aug 6, 2011 at 10:17 PM, subin gangadharan subingangadha...@gmail.com wrote: Hi, This is a text excerpt from the article [1]. Below paragraph I didn't understand quite well.Mainly in bold letters.Could anybody please explain how this will lead to an infinite loop. It seems