Re: how fork returns value

2008-10-06 Thread Mitul Modi
hi Lal, thanks for the analysis and clearing the doubt. so, parent process returns while child is added in to runqueue. right? Regards, mitul modi On Sun, Oct 5, 2008 at 1:55 PM, Lal [EMAIL PROTECTED] wrote: On Thu, Oct 2, 2008 at 3:55 PM, Mitul Modi [EMAIL PROTECTED] wrote: On Wed,

correct *.h files

2008-10-06 Thread Belisko Marek
Hi, I try to implement some code to kernel but I still missing correct usage of *.h files and from reading some code it's really hard for understand. Consider some examples Example 1: 1. have 5 *.c files and every could have *.h 2. common include *.h file is placed to /include/linux (e.g. for

USB learning on Linux

2008-10-06 Thread Nalajala Murali
Hi All, Is there any good way to start learning USB on Linux. I am interested to learn the USB driver flow practically like when i plug in my memory stick, which driver will be going to load, how the data transmission will happened and finally knowing the USB entry point where it starts...I know a

Re: how fork returns value

2008-10-06 Thread Lal
On Mon, Oct 6, 2008 at 12:03 PM, Mitul Modi [EMAIL PROTECTED] wrote: hi Lal, thanks for the analysis and clearing the doubt. so, parent process returns while child is added in to runqueue. right? Depends. For example if CLONE_VM is not set, then kernel runs child process first in

Re: RAM/memory cacheable by linux kernel/host CPU ?

2008-10-06 Thread Mulyadi Santosa
On Fri, Oct 3, 2008 at 2:04 PM, yogeshwar sonawane [EMAIL PROTECTED] wrote: Hi all, By default, all memory/RAM is cacheable by linux kernel /host CPU ? I think yes, but you can always change this behaviour. What is the scenario with other OSes ? I think other OSes behave the same: caching

Re: how fork returns value

2008-10-06 Thread Mulyadi Santosa
Hi... On Mon, Oct 6, 2008 at 7:51 PM, Lal [EMAIL PROTECTED] wrote: On Mon, Oct 6, 2008 at 12:03 PM, Mitul Modi [EMAIL PROTECTED] wrote: hi Lal, thanks for the analysis and clearing the doubt. so, parent process returns while child is added in to runqueue. right? Depends. For example if

Re: file system performance in linux

2008-10-06 Thread Mulyadi Santosa
On Sat, Oct 4, 2008 at 12:06 AM, pradeepkumar soman [EMAIL PROTECTED] wrote: Hi, I just want to know the factors on which the file system read depends First, you need to know the related fs lay out data in disk. For example, for fs like XFS which does delayed write, data is kept

Re: USB learning on Linux

2008-10-06 Thread Jagadeesh Bhaskar P
2 Books: 1. Linux Device Drivers by Corbet, Rubini and Greg 2. Essential Linux Device Drivers by Sreekrishnan Venkateswaran Both have chapters explaining USB driver. The second one is a newer book, and hence reflects the state of recent kernel versions. HTH. On Mon, Oct 6, 2008 at 5:13 PM,

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: how fork returns value

2008-10-06 Thread Peter Teoh
can someone please help me puzzle this out? 1. we know that ps auxwf will list out all the processes (including kernel threads) and their parent-child relationship. so each of these have a current, ie, the global task-struct ptr value called current, enabling them to be schedulable. 2.

Re: RAM/memory cacheable by linux kernel/host CPU ?

2008-10-06 Thread Peter Teoh
On Fri, Oct 3, 2008 at 3:04 PM, yogeshwar sonawane [EMAIL PROTECTED] wrote: Hi all, By default, all memory/RAM is cacheable by linux kernel /host CPU ? What is the scenario with other OSes ? Caching is a big topics. Even simple microcontroller like Blackfin processor (Media Processor) also

Re: detecting inactivity for power management

2008-10-06 Thread Peter Teoh
I suspect the answer could as simple as a simple timer - upon no activities for some time T1, save the screen and power down into low power mode. I am aware that Motorola Rokr E2 handphone, which will go into screensaver mode after some period of inactivites on its keys, Motorola gladly release