Question about Endian Order

2008-01-22 Thread vichy
Dear all: While studying the kernel source code, I always confused with the Endian Order. I have studied the article about Endian order on the net. Usually they gave an example as below: A 4 byte LongInt 0xabcdefgh will be arranged in memory as follows: Base Address+0 gh

RE: Fille system

2008-01-22 Thread Kathiresan, Lekshmanan
Hi Linto, If you have source code, you can easily learn how to develop simple file system. Please refer vfs.txt in Documentation folder . linux-2.6.18.8/Documentation/filesystems regards, K.Lekshmanan From: [EMAIL PROTECTED] [mailto:[EMAIL PROTEC

Fille system

2008-01-22 Thread Linto Poulose E
*Hi friends,* *I want to learm how to wrtite a file system driver for linux.* *I want suggestion from all of you regarding best books available for* *it. Also about online resources available.* *Regards,* *Linto Poulose E*

Re: Help required in understanding assembly code

2008-01-22 Thread Shreyansh
Hi Thomas and List, Thomas Petazzoni free-electrons.com> writes: > [...] > > I suspect that the argument "struct page *" is passed in %rdi. It first > dereferences it to get the page->flags value (which is at the beginning > of the page structure). Once this value is in %rax, it shifts it right

RE: Hi all reply plzzzz.....

2008-01-22 Thread Gaurav Aggarwal
In the 2.6 kernel, it is no longer possible to globally disable interrupts. In particular, the cli(), sti(), save_flags(), and restore_flags() functions are no longer available. Disabling interrupts across all processors in the system is simply no longer done. It is still possible to disable all i

Re: Has anyone done the JOS project

2008-01-22 Thread Mayank Kaushik
On Jan 22, 2008 9:46 PM, Gu Zhongshu <[EMAIL PROTECTED]> wrote: > Hi Mayank: > Thank you for you information. > At last I found it is the problem of forgetting to set permission of > kernel to write the page table that cause this problem. And the cr0_WP > set in cr0 is used to cause this issue. >

Hi all reply plzzzz.....

2008-01-22 Thread vasant j
Hi, How can we disable all interrupts in Linux.(any command for that!). Thank you, vasant.

Re: Has anyone done the JOS project

2008-01-22 Thread Gu Zhongshu
Hi Mayank: Thank you for you information. At last I found it is the problem of forgetting to set permission of kernel to write the page table that cause this problem. And the cr0_WP set in cr0 is used to cause this issue. On Jan 23, 2008 4:20 AM, Mayank Kaushik <[EMAIL PROTECTED]> wrote: > > On Ja

Re: system sound player

2008-01-22 Thread Mulyadi Santosa
Hi... here is what I know... On Jan 21, 0108 4:55 AM, Christopher Reder <[EMAIL PROTECTED]> wrote: > hello all. I am working on an embedded device and will want it to play some > simple system sound commands when buttons are pressed etc but want them to > play with no delay. That is, when I p

Re: Has anyone done the JOS project

2008-01-22 Thread Mayank Kaushik
On Jan 22, 2008 2:36 AM, Gu Zhongshu <[EMAIL PROTECTED]> wrote: > Hi All: > During implementing lab2 for the memory management code > In the function i386_vm_init, > I have passed the check_boot_pgdir(). > But then the bochs report > > Bochs is exiting with the following message: > [CPU0 ] excepti

Re: usb driver I/O error

2008-01-22 Thread Greg KH
On Thu, Jan 17, 2008 at 05:32:53PM +0100, Andrey Movchan wrote: > Hi, > I use usb-skeleton.c from linux kernel 2.6.19 distribution to write a driver > for USB mass storage device. Wait, why? What is wrong with the two different usb mass storage drivers we already have in the Linux kernel tree alr

Re: x86 pages, page tables, and page table entries

2008-01-22 Thread Vegard Nossum
On Jan 22, 2008 10:31 AM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > On Jan 21, 2008 11:43 PM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am experiencing something strange about pages and ptes on x86. I am > > calling alloc_pages() with order = 1 (should be 2 pages). This returns >

Re: Best way to learn assembly ?

2008-01-22 Thread Thomas De Schampheleire
Hello, On Jan 22, 2008 1:41 PM, Onkar <[EMAIL PROTECTED]> wrote: > What is the best way to learn assmebly instead of jut going through the > data sheets of processors ? Any project/pointers/links that might help // > > > Thanks & regards, > Onkar > > I would suggest trying to make write simple

Re: print current date and time in a kernel module

2008-01-22 Thread Erik Mouw
On Tue, Jan 22, 2008 at 06:17:29PM +0530, Kathiresan, Lekshmanan wrote: >I want to print current date and time in a kernel module. > > 1) do we have direct functions that we could use in kernel? No. >2) Can get time from epoch using gettimeofday? So, how do I convert > it to the curr

print current date and time in a kernel module

2008-01-22 Thread Kathiresan, Lekshmanan
Hi All, I want to print current date and time in a kernel module. 1) do we have direct functions that we could use in kernel? 2) Can get time from epoch using gettimeofday? So, how do I convert it to the current date and time string. Is there something similar to use

RE: x86 pages, page tables, and page table entries

2008-01-22 Thread Kathiresan, Lekshmanan
Hi All, I want to print current date and time in a kernel module. 1) do we have direct functions that we could use in kernel? 2) Can get time from epoch using gettimeofday? So, how do I convert it to the current date and time string. Is there something similar to userspace

Best way to learn assembly ?

2008-01-22 Thread Onkar
What is the best way to learn assmebly instead of jut going through the data sheets of processors ? Any project/pointers/links that might help // Thanks & regards, Onkar

Question about alloc_inode in 2.6

2008-01-22 Thread Manish Katiyar
Hi, Is it necessary for every filesystem supported by kernel 2.6 to have a implementation of alloc_inode vfs ops ? The reason i am asking this is because earlier in 2.4 days we had fs specific inode info structure embedded in the inode structure in a union, which means that even if you allocate n

Re: hidden Filesystem ???

2008-01-22 Thread Erik Mouw
On Tue, Jan 22, 2008 at 02:56:38PM +0530, Onkar wrote: > How do I get the filesystem which is shadowed by another file system ?? For > instance , ext3 is mounted on /root mount point. But this is alo a mount > point for rootfs (which is not unmounted ,AFAIK) . Your best bet would be /proc/mounts

Re: Help required in understanding assembly code

2008-01-22 Thread Thomas Petazzoni
Hi, Le Tue, 22 Jan 2008 16:15:49 +0530, Shreyansh <[EMAIL PROTECTED]> a écrit : > (This is a x86_64 machine I am working on, running SLES10 SP1) I don't have the source code for that exact kernel version, and several things have changed since then. > 1) What does the instruction "mov 0xff

Help required in understanding assembly code

2008-01-22 Thread Shreyansh
Hi List, While working on a kernel module, I am getting OOPs and was trying to debug it using the crash tool. Can you please help me understanding an disassembled code snippet. A brief about the situation: (This is a x86_64 machine I am working on, running SLES10 SP1) Following is the code where

Re: x86 pages, page tables, and page table entries

2008-01-22 Thread Vegard Nossum
On Jan 21, 2008 11:43 PM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > Hi, > > I am experiencing something strange about pages and ptes on x86. I am > calling alloc_pages() with order = 1 (should be 2 pages). This returns > a struct page with virtual address c780 (returned by > page_address()). N

hidden Filesystem ???

2008-01-22 Thread Onkar
How do I get the filesystem which is shadowed by another file system ?? For instance , ext3 is mounted on /root mount point. But this is alo a mount point for rootfs (which is not unmounted ,AFAIK) . Thanks & regards, Onkar

Has anyone done the JOS project

2008-01-22 Thread Gu Zhongshu
Hi All: During implementing lab2 for the memory management code In the function i386_vm_init, I have passed the check_boot_pgdir(). But then the bochs report Bochs is exiting with the following message: [CPU0 ] exception(): 3rd (13) exception with no resolution after the lcr0(cr0). Can you give m

Re: x86 pages, page tables, and page table entries

2008-01-22 Thread Mulyadi Santosa
Hi.. On Jan 22, 2008 5:43 AM, Vegard Nossum <[EMAIL PROTECTED]> wrote: > Hi, > > I am experiencing something strange about pages and ptes on x86. I am > calling alloc_pages() with order = 1 (should be 2 pages). This returns > a struct page with virtual address c780 (returned by > page_address(