elf_map: why offset of vma need to subtract eppnt-p_vaddr ?

2013-03-29 Thread Jacky
Hi All, When mmaping elf image into memory, why offset vma need to subtract eppnt-p_vaddr as the following code ? static unsigned long elf_map() { ... unsigned long off = eppnt-p_offset - ELF_PAGEOFFSET(eppnt-p_vaddr); ... } Thanks in advance. Jacky

Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
Hi, I am trying to write a simple filesystem to learn the basics of it. I have decided on a simple layout for my filesystem where the first block will be the super block and will contain the version information etc. The second block will contain the list of inodes. Third block onwards will be

Re: elf_map: why offset of vma need to subtract eppnt-p_vaddr ?

2013-03-29 Thread Prabhu nath
On Fri, Mar 29, 2013 at 12:45 PM, Jacky jackycli...@163.com wrote: Hi All, When mmaping elf image into memory, why offset vma need to subtract eppnt-p_vaddr as the following code ? static unsigned long elf_map() { ... unsigned long off = eppnt-p_offset -

Re: Re: elf_map: why offset of vma need to subtract eppnt-p_vaddr ?

2013-03-29 Thread Prabhu nath
On Fri, Mar 29, 2013 at 3:03 PM, Jacky jackycli...@163.com wrote: Great ! Thanks Prabhunath. Let me make sure I understand you correctly: Substracting ELF_PAGEOFFSET(eppnt-p_vaddr) from variable off makes vma map the page-aligned file contents, right ? Small change : Substracting

Re:Re: elf_map: why offset of vma need to subtract eppnt-p_vaddr ?

2013-03-29 Thread Jacky
Great ! Thanks Prabhunath. Let me make sure I understand you correctly: Substracting ELF_PAGEOFFSET(eppnt-p_vaddr) from variable off makes vma map the page-aligned file contents, right ? 在 2013-03-29 16:56:29,Prabhu nath gprabhun...@gmail.com 写道: On Fri, Mar 29, 2013 at 12:45 PM, Jacky

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Tobias Boege
On Fri, 29 Mar 2013, Sankar P wrote: Hi, I am trying to write a simple filesystem to learn the basics of it. I have decided on a simple layout for my filesystem where the first block will be the super block and will contain the version information etc. The second block will contain the

Fwd: Creating mkfs for my custom filesystem

2013-03-29 Thread Pranay Srivastava
-- Forwarded message -- From: Pranay Srivastava pran...@gmail.com Date: Fri, 29 Mar 2013 15:53:21 +0530 Subject: Re: Creating mkfs for my custom filesystem To: Sankar P sankar.curios...@gmail.com On 3/29/13, Sankar P sankar.curios...@gmail.com wrote: Hi, I am trying to write

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
On Fri, Mar 29, 2013 at 3:56 PM, Pranay Srivastava pran...@gmail.com wrote: -- Forwarded message -- From: Pranay Srivastava pran...@gmail.com Date: Fri, 29 Mar 2013 15:53:21 +0530 Subject: Re: Creating mkfs for my custom filesystem To: Sankar P sankar.curios...@gmail.com

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-29 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 09:31:01PM +0200, Rami Rosen wrote: Hi, 1) You can be sure that it does not use more than one rx queue. You can find more info about RX queues in http://media.wix.com/ugd//295986_4ef6dbdf11fd0a7f74f09741b4b5b2ee.pdf (I wrote it, a shameless plug...) 2) Does

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Madper
On 03/29/2013 06:48 PM, Sankar P wrote: On Fri, Mar 29, 2013 at 3:56 PM, Pranay Srivastava pran...@gmail.com wrote: -- Forwarded message -- From: Pranay Srivastava pran...@gmail.com Date: Fri, 29 Mar 2013 15:53:21 +0530 Subject: Re: Creating mkfs for my custom filesystem To:

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Valdis . Kletnieks
On Fri, 29 Mar 2013 15:44:49 +0530, Sankar P said: I have decided on a simple layout for my filesystem where the first block will be the super block and will contain the version information etc. The second block will contain the list of inodes. Third block onwards will be data blocks. Each

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-29 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 09:31:01PM +0200, Rami Rosen wrote: Hi, 1) You can be sure that it does not use more than one rx queue. You can find more info about RX queues in http://media.wix.com/ugd//295986_4ef6dbdf11fd0a7f74f09741b4b5b2ee.pdf Thank you so much for sharing this.

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Tobias Boege
On Fri, 29 Mar 2013, Sankar P wrote: On Fri, Mar 29, 2013 at 3:28 PM, Tobias Boege tob...@gambas-buch.de wrote: On Fri, 29 Mar 2013, Sankar P wrote: Hi, I am trying to write a simple filesystem to learn the basics of it. I have decided on a simple layout for my filesystem where the

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Manish Katiyar
On Fri, Mar 29, 2013 at 1:27 AM, Sankar P sankar.curios...@gmail.comwrote: Hi, I am trying to write a simple filesystem to learn the basics of it. I have decided on a simple layout for my filesystem where the first block will be the super block and will contain the version information

Re: How is gpio_keys.ko supposed to work?

2013-03-29 Thread Jerry Zhang
2013/3/29 Sven Geggus li...@fuchsschwanzdomain.de Hello, I have a userland application on Raspberry Pi which uses select to read input from a button connected to gpio like this: GPIO --+ BUTTON - GND | +--- RESISTOR 2k -- VCC (3.3V) The sysfs file I use select at

Re: Creating mkfs for my custom filesystem

2013-03-29 Thread Sankar P
On Fri, Mar 29, 2013 at 10:57 PM, Manish Katiyar mkati...@gmail.com wrote: On Fri, Mar 29, 2013 at 1:27 AM, Sankar P sankar.curios...@gmail.com wrote: Hi, I am trying to write a simple filesystem to learn the basics of it. I have decided on a simple layout for my filesystem where the

Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Daniel Hilst
Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs read only and copy.. The idea is, mount both filesystems together, and make write/read operations go on this way Read

Re: Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Greg Freemyer
On Fri, Mar 29, 2013 at 4:09 PM, Daniel Hilst danielhi...@gmail.com wrote: Suppose that I have two big filesystems, dest fs and source fs.. I want to copy whole source fs to dest fs, but I need to keep source filesystem online I can't mount source fs read only and copy.. The idea is, mount

Re: Online migration of arbitrary filesystems, possible?

2013-03-29 Thread Valdis . Kletnieks
On Fri, 29 Mar 2013 17:09:14 -0300, Daniel Hilst said: The idea is, mount both filesystems together, and make write/read operations go on this way Read operations: 1. See if data is already on dest fs, 2. If is then read data and bright back to caller (lets call this cold read)