multiboot compliancy of vmlinuz-2.6.34

2010-10-06 Thread Prabhu nath
Dear All, I have built a kernel version 2.6.34 and have a file * vmlinuz-2.6.34* in /boot folder. Is this file multiboot comliant ?. If yes, then as per multiboot specification, first byte should be magic number 0x1BADB002. But when I read the first byte, it is

Re: multiboot compliancy of vmlinuz-2.6.34

2010-10-06 Thread Shaz
On Wed, Oct 6, 2010 at 12:08 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I have built a kernel version 2.6.34 and have a file * vmlinuz-2.6.34* in /boot folder. Is this file multiboot comliant ?. If yes, then as per multiboot specification, first byte should

Module unload fails

2010-10-06 Thread Adil Mujeeb
Hi list, I am trying to create a dummy module for learning purpose. For “hello world” example, everything goes fine. But when I tried to add register_filesystem and unregister_filesystem call the behavior is unexpected. I am not able to unload my module. My module has single file named

Re: Module unload fails

2010-10-06 Thread Carlo Caione
On Oct 6, 2010, at 2:30 PM, Adil Mujeeb wrote: [cut] [a...@tom kernel]$ Module loading is successful but unloading fails. [r...@tom linux-2.6.30]# /sbin/lsmod | grep rkfs rkfs_mod1452 0 [permanent] [r...@tom linux-2.6.30]# /sbin/rmmod rkfs_mod ERROR: Removing

Re: SPI CS, wait for IRQ, proceed sequence

2010-10-06 Thread Sergii Kovalchuk
Hi Alan, On Sunday 03 October 2010 17:48:06 Alan Carvalho de Assis wrote: Hi Sergii, On 10/1/10, Sergii Kovalchuk sentinelofse...@gmail.com wrote: Hi all, Probably, I should ask my quesiton on some SPI dedicated mailing lists, however, the borders of newbiness are hard to estimate.

Re: Module unload fails

2010-10-06 Thread Mulyadi Santosa
On Wed, Oct 6, 2010 at 19:30, Adil Mujeeb mujeeb.a...@gmail.com wrote: Module loading is successful but unloading fails. [r...@tom linux-2.6.30]# /sbin/lsmod | grep rkfs rkfs_mod                1452  0 [permanent] [r...@tom linux-2.6.30]# /sbin/rmmod rkfs_mod ERROR: Removing 'rkfs_mod':

Re: How big a kernel dump can be on 32GB m/c.

2010-10-06 Thread Mulyadi Santosa
Dear Hari... On Wed, Oct 6, 2010 at 09:56, hari krishnan p.harikrishna...@gmail.com wrote: Hi kernelnewbies, I have a system which has 16GB memory +16GB for swap space total space required in /var/crash is 32GB. Are you referring to kdump here? Can I keep less then 32GB for /var/crash ? 

[OOT] /proc/meminfo presentation in #ubuntu-classroom at irc.freenode.net

2010-10-06 Thread Mulyadi Santosa
As the subject says...it starts as I write this in +/- 10 minute. Feel free to join... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with unsubscribe

Re: multiboot compliancy of vmlinuz-2.6.34

2010-10-06 Thread Philip Downer
Prabhu nath wrote: I have built a kernel version 2.6.34 and have a file *vmlinuz-2.6.34* in /boot folder. Is this file multiboot comliant ?. If yes, then as per multiboot specification, first byte should be magic number 0x1BADB002. But when I read the first

Re: function do_filp_open() wrapped in open system call

2010-10-06 Thread mohit verma
hi all, here is the code static inline int open_to_namei_flags(int flag) { if ((flag +1) O_ACCMODE ) flag++; } i dint get the logic behind this . i mean , what is the need to increase the flag while opening a file?

Re: Module unload fails

2010-10-06 Thread Dave Hylands
Hi Adil, On Wed, Oct 6, 2010 at 5:30 AM, Adil Mujeeb mujeeb.a...@gmail.com wrote: Hi list, I am trying to create a dummy module for learning purpose. For “hello world” example, everything goes fine. But when I tried to add register_filesystem and unregister_filesystem call the behavior is

function do_filp_open() wrapped in open system call

2010-10-06 Thread mohit verma
hi all, here is the code static inline int open_to_namei_flags(int flag) { static inline int open_to_namei_flags http://www.cs.fsu.edu/~baker/devices/lxr/http/ident?i=open_to_namei_flags(int flag http://www.cs.fsu.edu/~baker/devices/lxr/http/ident?i=flag) { if ((flag

Re: system call address

2010-10-06 Thread Usman S. Ansari
--- On Wed, 10/6/10, luca ellero lro...@gmail.com wrote: I have seen kernel symbols (talking in general, not sys_call_table), appear in /proc/kallsyms in some version of kernel and not in others. Symbol definition is same in both kernel revs. What makes symbol appear or not in /proc/kallsym

Some IPv6 project for Linux

2010-10-06 Thread Łukasz Czyż
Hello! I am looking for advice. I have to write some programming project that is connected with IPv6 and I decided to do something for Linux (as I learn Linux kernel actually it would be nice if it was something connected with kernel code as well, maybe some module). At first I`ve been thinking

kernel stuck test

2010-10-06 Thread Sengottuvelan S
Hi, I would like to implement kernel stuck for while say 30 sec so that watchdog can catch it using /proc/interrupts file. How can i do it? please point me how i can do it for test purpose. -SV

Re: Some IPv6 project for Linux

2010-10-06 Thread Denis Kirjanov
I think that you could _try_ to ask in netfilter-devel and netdev about this. 2010/10/6 Łukasz Czyż perlowy.d...@gmail.com: Hello! I am looking for advice. I have to write some programming project that is connected with IPv6 and I decided to do something for Linux (as I learn Linux kernel

Re: moving pages from one process to another

2010-10-06 Thread Venkatram Tummala
On Wed, Oct 6, 2010 at 6:37 PM, MK stardust...@gmail.com wrote: Hi list, I want to move pages from one userspace process to another userspace process. The reason to do this is to avoid the overhead of copying. I could ofcourse use shared memory but unfortunately, the data I have is being

Re: How big a kernel dump can be on 32GB m/c.

2010-10-06 Thread Mulyadi Santosa
Hi... On Thu, Oct 7, 2010 at 08:24, hari krishnan p.harikrishna...@gmail.com wrote: Hi Mulyadi, Please don't do top posting next time :) I am referring to the kdump core. I see.. not so familiar with that FYI... Has you said, could you tell me how big allocated anonymous pages can be in

Re: kernel stuck test

2010-10-06 Thread Mulyadi Santosa
Hi :) On Thu, Oct 7, 2010 at 04:52, Sengottuvelan S sengottuvela...@gmail.com wrote: Hi Santosa, You forgot to cc: kernelnewbies :) Can you let me point me how to disable premption and interrupts in kernel mode. I think spin_lock_irqsave() followed by tight loop will do the job...tight