Re: ADMIN: end of nl.linux.org, lists will move

2010-12-15 Thread Prabhu nath
Hi Rik, Thanks for all your support in having this on a new name. New mailing alias will be *kernelnewbies.**kernelnewbies.org* and mail-id will be *kernelnewb...@**kernelnewbies.org*. Is that right ? Thanks, Prabhu On Tue, Dec 14, 2010 at 11:35 PM, Rik van Riel r...@surriel.com wrote:

e100 driver's data sheet

2010-12-10 Thread Prabhu nath
Dear All, I am trying to understand and analyse Ethernet driver of the device *03:01.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 (rev 08)*. Google search couldn't find data sheet for this device. Request you to provide me the link or the pdf if

Re: e100 driver's data sheet

2010-12-10 Thread Prabhu nath
Thanks a lot. Prabhu On Fri, Dec 10, 2010 at 3:33 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Fri, Dec 10, 2010 at 16:41, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I am trying to understand and analyse Ethernet driver of the device 03:01.0 Ethernet

Invoking e100_open from userspace

2010-12-03 Thread Prabhu nath
Dear All, I am trying to analyse ethernet and rionet driver. Both the drives are registered with the kernel through register_netdev(). Each driver has their own functions registered such as e100_open(), rionet_open(). How to trigger this functions from the user space.

Re: is there still an active kernel janitors project?

2010-11-22 Thread Prabhu nath
Hi Robert, I am also interested. Regards, Prabhu On Sun, Nov 21, 2010 at 6:36 PM, Robert P. J. Day rpj...@crashcourse.cawrote: i can suggest some very specific cleanups people can work on if they're bored. one related to lists: list_for_each() - list_for_each_entry() calls

/dev/mem

2010-10-26 Thread Prabhu nath
Dear All, Can you please clarify my doubt on /dev/mem When I open /dev/mem, Is that entire physical address space is associated to /dev/mem or only the system memory ? * If I can mmap the kernel memory in read write mode, I can screw up the whole kernel. Is that right

Re: /dev/mem

2010-10-26 Thread Prabhu nath
Prabhu, On Tue, Oct 26, 2010 at 9:19 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, Can you please clarify my doubt on /dev/mem When I open /dev/mem, Is that entire physical address space is associated to /dev/mem or only the system memory ? * If I

Re: /dev/mem

2010-10-26 Thread Prabhu nath
Please see inline. Plz correct me if I am wrong. On Wed, Oct 27, 2010 at 10:26 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Wed, Oct 27, 2010 at 11:39, Prabhu nath gprabhun...@gmail.com wrote: Thanks a lot for the clarification. Is that not a big hole that the kernel provides

Re: SIGALRM handler execution time

2010-10-24 Thread Prabhu nath
I have set ITIMER_REAL On Sun, Oct 24, 2010 at 4:57 AM, Vimal j.vi...@gmail.com wrote: Hi Prabhu, On 21 October 2010 23:56, Prabhu nath gprabhun...@gmail.com wrote: Dear All, There is a time difference t between the time t1-at which the pending signal is set and the time t2

Profiling the kernel and applications

2010-10-21 Thread Prabhu nath
Dear All, I am interested to perform following profiling 1. MIPS used by the kernel code execution. In particular when CS[2:0] (lower 2 bits of cs register) is 00, I need to calculate mips consumed for a stipulated time. 2. MIPS consumed by the interrupt code - inclusive of top-half

Re: Listing hardware devices, chipset info in the PC

2010-10-18 Thread Prabhu nath
Exactly this and few more for all the devices. This shows for the clock. Thanks, Prabhu On Mon, Oct 18, 2010 at 10:54 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sun, Oct 17, 2010 at 20:15, Prabhu nath gprabhun...@gmail.com wrote: Dear All, lshw is the utilitiy

Listing hardware devices, chipset info in the PC

2010-10-17 Thread Prabhu nath
Dear All, *lshw* is the utilitiy to get the device details in the PC. But it will not list out timers if any, or chipset details. Will /sys filesystem (interface) provide the detail hardware information ? If yes, can you please help with proper link or is there any means to get

Re: where does the stack of a process start

2010-10-17 Thread Prabhu nath
What I have understood is, the stack segment and the heap segment in the virtual address space of an application is allocated by the kernel and the starting address of these segments vary for every execution of a program ( on the premise that the program is not changed). Unlike the program's .text

Setting a timer for less than 1 ms

2010-10-15 Thread Prabhu nath
Dear All, If HZ = 1000 then timer will generate interrupt every 1ms. Through * timer_list* structure, I can register a timer function to execute at a minimum resolution of 1ms. Is there any way to register a timer function in the kernel with a resolution of 500 micro second ? In other way, is

Re: Regarding device cycles

2010-10-13 Thread Prabhu nath
Hi Dave, Please clarify my questions/understanding written inline. Thanks, -Prabhu On Wed, Oct 13, 2010 at 7:34 AM, Dave Hylands dhyla...@gmail.com wrote: Hi Sri, On Tue, Oct 12, 2010 at 6:29 PM, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi Dave, Thanks for explanation.

Re: multiboot compliancy of vmlinuz-2.6.34

2010-10-10 Thread Prabhu nath
Then, what is the interface specification to which both Linux and Grub comply to. How does Grub load the linux kernel to the memory and initiate execution of the Kernel code. Thanks, Prabhu On Wed, Oct 6, 2010 at 9:08 PM, Philip Downer p...@pjd.me.uk wrote: Prabhu nath wrote: I

Re: Reading TLB Entries

2010-10-10 Thread Prabhu nath
Yes please. Nice to have your say on this. Thanks, Prabhu On Mon, Oct 11, 2010 at 9:37 AM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Mon, Oct 11, 2010 at 04:33, Rik van Riel r...@surriel.com wrote: On 10/10/2010 08:33 AM, Dragos Tatulea wrote: Even if you theoretically could,

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: mmap problem

2010-10-05 Thread Prabhu nath
: Hello Prabhu, On Mon, Oct 4, 2010 at 3:55 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I have an 512 MB RAM on an Intel desktop machine, of which Kernel uses 256M for all allocation for kernel as well as for user programs. (by passing mem=256M as a boot

Re: mmap problem

2010-10-04 Thread Prabhu nath
position 6 (blocked above) to be set, but I see that it is not set. *Which function is responsible to update the flags in the page table entry. ?* Thanks, Prabhu On Mon, Oct 4, 2010 at 12:25 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I have an 512 MB RAM on an Intel

Re: Reading TLB Entries

2010-10-04 Thread Prabhu nath
specific question. On powerpc for example, you can read it via special purpose registers MAS0 – MAS3. -- *From:* kernelnewbies-bou...@nl.linux.org [mailto: kernelnewbies-bou...@nl.linux.org] *On Behalf Of *Prabhu nath *Sent:* Monday, October 04, 2010 4:11 PM

mmap problem

2010-10-04 Thread Prabhu nath
Dear All, I have an 512 MB RAM on an Intel desktop machine, of which Kernel uses 256M for all allocation for kernel as well as for user programs. (by passing mem=256M as a boot parameter). Hence I have 256MB of memory which I can treat it as IO memory. System memory is

Re: mmap problem

2010-10-04 Thread Prabhu nath
PFN defined here to experiment with IO memory as well as VGA Controller memory. The rest of the experiments are as written in the below mail thread. Please check these files, and let me know if I have missed anything. Thanks, Prabhu On Mon, Oct 4, 2010 at 2:46 PM, Prabhu nath gprabhun

Re: Reducing the physical memory for the allocator

2010-10-01 Thread Prabhu nath
Thanks for your kind replies. Prabhu On Fri, Oct 1, 2010 at 11:18 AM, Dave Hylands dhyla...@gmail.com wrote: Hi Prabhu, On Thu, Sep 30, 2010 at 11:29 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, I am trying to experiment the following. * I have a 1 GB of RAM

Re: kmap and page

2010-10-01 Thread Prabhu nath
page, I believe, you are refering to struct page. kmap is a kernel function which takes in the parameter struct page pointer and returns kernel virtual address. On a typical x86 machine with 1GB RAM, kmap works like this. If the struct page is associated with the physical page less than 896 MB,

Reducing the physical memory for the allocator

2010-09-30 Thread Prabhu nath
Dear All, I am trying to experiment the following. * I have a 1 GB of RAM and running Linux 2.6.34 on a Intel Machine. * I want memory allocator to get only 768 MB of RAM. * The rest 256 MB of RAM, Kernel should see it has IO memory Is there any option that I can pass to the kernel so

Re: Regarding IDT

2010-09-20 Thread Prabhu nath
AM, Prabhu nath gprabhun...@gmail.comwrote: There is a macro called *common_interrupt* which calls do_irq. arch/x86/kernel/entry_32.S Please refer ULK page 162 for more description. Can you please share the data sheet of x86. Regards, Prabhu On Mon, Sep 20, 2010 at 7:20 AM, Sri Ram

Re: offset problem

2010-09-20 Thread Prabhu nath
In the example, there are 3 arguments taken from the command line. They are 1. name of the file 2. the offset within the file from where the contents have to be printed 3. length in bytes from the offset that have to be printed on to stdout. Let us take some input for our understanding. Let the

Re: offset problem

2010-09-20 Thread Prabhu nath
Here are my thoughts. Plz correct me if I am wrong. In the given example 5000 is the offset within the file and not the address. Given, the offset 5000, kernel anyway could allocate a physical page and place the contents from the starting of the page and map it to the virtual address. For E.g. it

Re: Regarding IDT

2010-09-19 Thread Prabhu nath
There is a macro called *common_interrupt* which calls do_irq. arch/x86/kernel/entry_32.S Please refer ULK page 162 for more description. Can you please share the data sheet of x86. Regards, Prabhu On Mon, Sep 20, 2010 at 7:20 AM, Sri Ram Vemulpali sri.ram.gm...@gmail.comwrote: Thanks for

Re: A question

2010-09-01 Thread Prabhu nath
Interrupt context is a loaded term. It is used for both top-half and bottom-half processing. Linux defines two terms in the top-half, one is Interrupt handler (IH) and Interrupt Service Routine (ISR). Interrupt handler is a standard kernel code that is executed by the processor once the interrupt

malloc memory region descriptors

2010-08-16 Thread Prabhu nath
Dear All, In linux kernel, for all memory allocation done by *vmalloc*, kernel maintains memory region descriptor *(vm_struct)* which stores information about the linear virtual address range, no. of physical page frames allocated... as a linked list headed by *vmlist *symbol. Can you

Re: malloc memory region descriptors

2010-08-16 Thread Prabhu nath
On Mon, Aug 16, 2010 at 1:30 PM, Prabhu nath gprabhun...@gmail.com wrote: Dear All, In linux kernel, for all memory allocation done by *vmalloc*, kernel maintains memory region descriptor *(vm_struct)* which stores information about the linear virtual address range, no. of physical

Re: Problem with EXPORT_SYMBOL(irq_to_desc)

2010-08-12 Thread Prabhu nath
wrote: I don't exactly know the problem...but here's something to think... On Wed, Aug 11, 2010 at 13:07, Prabhu nath gprabhun...@gmail.com wrote: Hi, I am facing a peculiar behaviour on Kernel version 2.6.34.1 (http://lxr.linux.no/#linux+v2.6.34.1). For my