linux kernel related questions

2010-10-24 Thread sri
Hello, Am looking for kernel related interview questions. Did google and got some links, but the questions faced by people in the interviews will be helpful too. Would Appreciate your help. Thanks, Sri

Re: Regarding device cycles

2010-10-12 Thread Sri Ram Vemulpali
access to bus. UART's are worked through CPU. So they no need to wait for I/O operations. In other words bus is contended for among various devices. Can you please provide more distinct explanation, between UARTs and DMA contention for bus. Thanks in advance. Regards, Sri. On Mon, Oct 11, 2010 at 10

Regarding device cycles

2010-10-11 Thread Sri Ram Vemulpali
. Please help me clarify this doubt. I know DMA steals some CPU cycles to transfer data, I mean does operation with cpu cycles in parallel. Thanks. -- Regards, Sri. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http

Re: segmentation question

2010-10-02 Thread Sri Ram Vemulpali
GDT's are initialized at boot time. But how about at the time of memory allocation. NOTE: I am not using any paging at all. Here GDT means global descriptor table. Please let me know. Thanks. Sri. Here are the links to how to develop kernel. Also, read intel system programming guide, which gives

segmentation question

2010-10-01 Thread Sri Ram Vemulpali
for you reply. Regards, Sri. -- Regards, Sri. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Regarding GDT

2010-09-29 Thread Sri Ram Vemulpali
, then is it possible to assign another DS segment. If so, how is that accomplished, since we need to load in DS new index of segment descriptor and keep track of all indexes in to GDT. Can anyone explain how above mentioned things can be achieved. -- Regards, Sri. -- To unsubscribe from

Re: writing to driver failed

2010-09-27 Thread sri
Thanks. It worked. On Sat, Sep 25, 2010 at 12:46 AM, John Mahoney jmaho...@waav.com wrote: On Fri, Sep 24, 2010 at 9:38 AM, sri bskmo...@gmail.com wrote: My driver write routine is not working properly. As a result, when I do echo 123 /dev/eater, the process is stopping and the control

Re: printk and \n

2010-09-26 Thread sri
Thanks guys for the useful information. /Sri On Sun, Sep 26, 2010 at 9:37 AM, Dave Hylands dhyla...@gmail.com wrote: Hi guys, On Sat, Sep 25, 2010 at 5:08 PM, Philip Downer wrote: javad karabi wrote: I am very curious about this. Where exactly does the hello text go, before

Re: regarding synchronization code

2010-09-25 Thread Sri Ram Vemulpali
I am just saying I know inline keyword. But what is always_inline. Thanks for replies and explanations. I got it now. Regards, Sri. On Sat, Sep 25, 2010 at 4:48 AM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Hi! On 18:56 Fri 24 Sep     , Sri Ram Vemulpali wrote: Hi all

printk and \n

2010-09-24 Thread sri
Hi printk(device opened\n); printk(device file opened by %d, current-pid); Here the second printk output is not displayed. Without \n printk is not flushing out its buffer. If I give, \n in the second printk it is working. Is there any reason for that? Sri--

Re: copy_to_user() and copy_from_user(): confusing code

2010-09-24 Thread sri
what part is not able to understand? On Fri, Sep 24, 2010 at 12:35 AM, Bond jamesbond.2...@gmail.com wrote: Even I am facing the same so some one can elaborate a bit. On Thu, Sep 23, 2010 at 11:56 PM, mohit verma mohit89m...@gmail.comwrote: hi all, i many times tried to understand the

writing to driver failed

2010-09-24 Thread sri
; printk(\nWrote %d bytes\n, data_written); return(data_written); } Appreciate any help. /Sri.

regarding synchronization code

2010-09-24 Thread Sri Ram Vemulpali
is used to place the code in to the caller function at the time of compiler, but why declared as macro Any help would be appreciated. -- Regards, Sri. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http

Re: why mknod() ??

2010-09-21 Thread Sri Ram Vemulpali
://kernelnewbies.org/FAQ -- Regards, Sri.

Re: error in a compiling simple character device driver

2010-09-20 Thread sri
Bond, that worked. But can you explain why that change worked? On Sun, Sep 19, 2010 at 11:28 AM, Bond jamesbond.2...@gmail.com wrote: On Sun, Sep 19, 2010 at 9:08 AM, Manoj Gupta manoj...@gmail.com wrote: Change char *memory_buffer[]; to char *memory_buffer; Thanks a lot Manoj that

Re: mmap confusion

2010-09-20 Thread Sri Ram Vemulpali
across networks. So, this also an abstraction provided by OS. ok. Regards, Sri. On Mon, Sep 20, 2010 at 1:33 AM, Rajat Jain rajatj...@juniper.net wrote: Hello List, I wanted to understand how the mmap works. I mean, not from the kernel APIs or data structures perspective, but from the HW

Re: mmap confusion

2010-09-20 Thread Sri Ram Vemulpali
memory segment across networks. So, this also an abstraction provided by OS. ok. Regards, Sri. On Mon, Sep 20, 2010 at 1:33 AM, Rajat Jain rajatj...@juniper.net wrote: Hello List, I wanted to understand how the mmap works. I mean, not from the kernel APIs or data structures perspective

Re: Context of a kernel routine

2010-09-19 Thread Sri Ram Vemulpali
Replying to all. Or you can set a timer which interrupts and checks the stack and prints stack out. But you will get address of the instruction in the function. you can see dtrace concept of hacking stack to insert callback functions to trace callee. Regards, Sri. On Sat, Sep 18, 2010 at 10:42

Re: Regarding IDT

2010-09-19 Thread Sri Ram Vemulpali
an interrupt or exception happens. I am not talking about interrupt subsystem, which is done in do_irq, checking what interrupt occurred by reading bus, and calling appropriate handler. Let me know whether my understanding is right. Thanks, Sri. On Sun, Sep 19, 2010 at 7:27 AM, arshad hussain arshad.su

Regarding IDT

2010-09-18 Thread Sri Ram Vemulpali
is 8 bytes long. And how is the interrupt line sharing is provided. Is sharing provided at OS code level. I did not see any explanation of sharing at Intel manual (data sheet of x86 system programming guide). Any thoughts. Please clarify. Thanks. -- Regards, Sri.

regarding rcu

2010-09-17 Thread Sri Ram Vemulpali
. But not for basic functions. I know this is a kind of lazy question but any help is appreciated. Thanks. -- Regards, Sri.

Re: regarding rcu

2010-09-17 Thread Sri Ram Vemulpali
Hi Dave, Thanks for the link. I came across two structures when browsing rcu_read_lock code. what does struct lock_class_key and struct lock_class do. In what context they are used. Can anyone explain. Thanks, Sri. On Fri, Sep 17, 2010 at 8:23 PM, Dave Hylands dhyla...@gmail.com wrote

Re: ask for kernel module programming

2010-09-16 Thread sri
of interfaces to request any kernel resources. --Sri On Thu, Sep 16, 2010 at 11:56 AM, jhoni maux jhoni.m...@gmail.com wrote: HI, Now i'm learn kernel module programming, but i'm still confuse about user space context and kernel space context. anyone know about what the different between user

Re: Regarding installing Linux kernel for first time

2010-09-16 Thread sri
raghu, 1)yes, can install as dual boot 2) kernel.org is very good source linux kernel only. If you want to install Linux OS as dual boot, you have to get it from fedora/ubuntu/centos sites. -Sri- On Thu, Sep 16, 2010 at 4:20 PM, Rags Linux linux.r...@gmail.com wrote: Hi All, I am

Re: Best linux distribution

2010-09-16 Thread sri
What is your purpose, for development or for rd or general purpose? On Thu, Sep 16, 2010 at 5:09 PM, Rags Linux linux.r...@gmail.com wrote: Hi All, I have Pentium 4 machine. Which is the best linux distribution to install? Ubuntu 10 and Fedora 13 are the latest. Can they run on older

Regarding do_irq code

2010-09-16 Thread Sri Ram Vemulpali
this function rcu_exit_nohz() do in irq_enter context and what is struct rcu_dynticks is used for. Can anyone please clarify these. Thanks. Regards, Sri.

Re: Best linux distribution

2010-09-16 Thread sri
Thanks pavan for the link. Useful. On Fri, Sep 17, 2010 at 1:27 AM, Pavan Savoy pavan_sa...@sify.com wrote: On Thu, Sep 16, 2010 at 12:08 PM, StephanT stman937-linew...@yahoo.com wrote: http://en.wikipedia.org/wiki/Comparison_of_Linux_distributions ubuntu has THE BEST package

Re: Regarding do_irq code

2010-09-16 Thread Sri Ram Vemulpali
I know what rcu is and the synchronization mechanism. I am trying to understand struct rcu_dynticks and what this rcu_exit_nohz does in irq_enter context. Is this something related hrtimers. please clarify, thanks. Regards, Sri Thanks, Sri. On Thu, Sep 16, 2010 at 7:56 PM, Dave Hylands dhyla

Regarding Signals in Kernel

2010-09-12 Thread Sri Ram Vemulpali
please clarify this, what is the right scenario. Thanks, Sri.

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
thanks to all On Thu, Sep 9, 2010 at 8:16 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 1:10 PM, Dave Hylands dhyla...@gmail.com wrote: Well, check your CPU usage. It's probably less than 100%. Let's say it's at 46%. That means that the system is spending 54% of its time

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
. Please can anyone explain the sequence of operations how the softirq is recognized (that it was set) and scheduled to execute. Thanks, Sri. On Thu, Sep 9, 2010 at 2:45 PM, Sri Ram Vemulpali sri.ram.gm...@gmail.comwrote: thanks to all On Thu, Sep 9, 2010 at 8:16 AM, Bond jamesbond.2...@gmail.com

regarding do_irq

2010-09-08 Thread Sri Ram Vemulpali
Hi All, Can anyone help me to understand what exit_idle() function does. I am trying to understand the whole process of do_IRQ. Can anyone point to how APIC protocol works and brief view of process before do_IRQ. Thanks, Sri.

do_IRQ

2010-09-08 Thread Sri Ram Vemulpali
Can anyone please explain what irq_enter function does which is called from do_irq. Thanks. Sri.

Re: Integer Division on 32 Bit Machines

2010-09-08 Thread Sri Ram Vemulpali
Sorry guys for interrupting your thread. I have trouble mailing to the group. So just testing on this thread whether I can mail to group. kernelnewbies On Wed, Sep 8, 2010 at 8:57 PM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 1:32 AM, Greg Freemyer

anyone know new network drivers receiving architecture

2010-05-18 Thread sri ram vemulpali
) and data buffer area for skb buff. Also, most of the driver structure is changed. If anyone can help me to understand the arch it would help me. Thanks, Sri

schedule

2010-02-19 Thread sri ram vemulpali
Hi all, Can anyone explain what is struct rcu_data and what does it store. /* 92 http://lxr.linux.no/linux+v2.6.32/kernel/kernel/rcutree.c#L92 * Note a quiescent state. Because we do not need to know 93 http://lxr.linux.no/linux+v2.6.32/kernel/kernel/rcutree.c#L93 * how many quiescent

Re: question regarding linux freeze

2008-11-18 Thread Sri Ram K Vemulpali
I am trying to know what happens if I access device if its associated device driver is not loaded. I am expecting a error in the program which will gracefully exit. But not seg fault. On Tue, Nov 18, 2008 at 12:41 AM, Jagadeesh Bhaskar P [EMAIL PROTECTED] wrote: 5. rmmod module Ok. Now there

Re: question regarding linux freeze

2008-11-17 Thread Sri Ram K Vemulpali
Sri On Mon, Nov 17, 2008 at 11:34 AM, Belisko Marek [EMAIL PROTECTED]wrote: Hi, On Sun, Nov 16, 2008 at 5:36 AM, Sri Ram K Vemulpali [EMAIL PROTECTED] wrote: Hi all, I am writing a kernel module. Where in the module, major number is allocated on fly (alloc_chrdev_region

question regarding linux freeze

2008-11-15 Thread Sri Ram K Vemulpali
the kernel to create same major number on fly when I use insmod(kernel is picking the major number on fly what I used for device node). When I type insmod the whole kernel is freezing. Do you think the kernel should avoid such situation gracefully. Any comments would be helpful. Thank you. Sri.

Re: question on linux elf image

2008-10-16 Thread Sri Ram K Vemulpali
Thank you Dhaval. Seems to be very good explanation of boot process and architecture. I will look in to it. Sri On Tue, Oct 14, 2008 at 2:33 AM, Dhaval Shah [EMAIL PROTECTED] wrote: The attatched document will be helpful to understand linux boot process and clear your doubts... Thanks

Re: question on linux elf image

2008-10-07 Thread Sri Ram K Vemulpali
you. Sri On Tue, Oct 7, 2008 at 3:24 AM, Henrik Austad [EMAIL PROTECTED]wrote: On Monday 06 October 2008 22:53:10 Sri Ram K Vemulpali wrote: hi all, I have a doubt? why is that kernel has to be compress the image file to copy to boot dir, to boot the kernel. I did not get why we do

question on linux elf image

2008-10-06 Thread Sri Ram K Vemulpali
hi all, I have a doubt? why is that kernel has to be compress the image file to copy to boot dir, to boot the kernel. I did not get why we do compressing image file after we compile the kernel code. Any answers would be helpful. Thank you. Sri

Re: problem in understanding source code of kernel

2008-09-24 Thread Sri Ram K Vemulpali
really helped me to get start on linux kernel. For writing device drivers get Linux device drivers printed by orelly (third edition 2.6) All the best Sri On Wed, Sep 24, 2008 at 9:41 AM, Sunil [EMAIL PROTECTED] wrote: On Wed, Sep 24, 2008 at 6:10 PM, Sandeep K Sinha [EMAIL PROTECTED]wrote

doubt on atomic increment operation

2008-09-13 Thread Sri Ram K Vemulpali
execution cycle is interrupted by an event or a process. Thank you. Sri.

Question regarding process creation

2008-08-17 Thread Sri Ram K Vemulpali
. But how is user stack created. Thank you. Sri

Need help Regarding Project

2008-08-09 Thread Sri Ram K Vemulpali
to direct where more blogs are (except sourceforge.net usually projects go really slow) It would be really helpful for me. Please mail me as I am starving for project. Waiting for replies. Thank you. Sri.