Re: File System Project

2009-03-06 Thread sahlot arvind
I mean RAM based. On Fri, Mar 6, 2009 at 3:50 PM, sahlot arvind wrote: > Try writing memory based file system. > > > On Fri, Mar 6, 2009 at 3:35 PM, Shyam Burkule wrote: > >> Hi Greg, Thanks for your reply. >> >> >> Actually I am new to file system, I

Re: File System Project

2009-03-06 Thread sahlot arvind
Try writing memory based file system. On Fri, Mar 6, 2009 at 3:35 PM, Shyam Burkule wrote: > Hi Greg, Thanks for your reply. > > > Actually I am new to file system, I did work in memory management of Linux > kernel. My concern is to understand file system, block architecture etc. I > started read

Re: About Kernel preemption and kernel mode stack

2009-03-05 Thread sahlot arvind
> mic...@michaelblizek.twilightparadox.com> wrote: > > > > > Hi! > > > > > > On 23:47 Wed 04 Mar , sahlot arvind wrote: > > > > Hi All, > > ... > > > > > 2. If kernel is not preemptible then do we really need a separate >

About Kernel preemption and kernel mode stack

2009-03-04 Thread sahlot arvind
Hi All, Just had couple of questions: 1. kernel is preemptible if we are running in kernel mode and not holding any lock. What if we preempt the kernel even when we are holding lock? Assuming process A and B are trying to execute the same kernel path. So what if something like this happens: A get

Re: query regarding linux kernel

2009-01-06 Thread sahlot arvind
Just to add more, CPL is used to protect the kernel memory from user land programs. e.g. kernel space memory is marked as accessible when CPL=0 thus while running in user mode (CPL=3) you cannot access kernel memory (address space). There are other CPL i.e. 1, 2, which are less privileged then 0 b

Re: [SUSPECTED-SPAM] Re: Re: Linux on Bochs

2008-12-28 Thread sahlot arvind
Thanks Rahul. Luckily I got gcc-3.4.2 built using gcc-4.3.2 and also got bochs-2.2.6 built using gcc-3.4.2 and its working fine now.. On Mon, Dec 29, 2008 at 8:18 AM, Rahul Pydimukkala wrote: > On 00:38 Mon 29 Dec , sahlot arvind wrote: > > Thanks guys. > > I see that b

Re: Re: Linux on Bochs

2008-12-28 Thread sahlot arvind
based distros. > > Let me know if that helps. > > - > Rahul > > > On 05:22 Sat 27 Dec , sahlot arvind wrote: > > This is the error: > > > > cd iodev && \ > > make libiodev.a > > make[1]: Entering directory `/home/arvind/os

Re: Linux on Bochs

2008-12-27 Thread sahlot arvind
:bx_devices_c()': devices.cc:48: warning: deprecated conversion from string constant to 'char*' make[1]: *** [devices.o] Error 1 make[1]: Leaving directory `/home/arvind/osEngg/tools/bochs-2.1.1/iodev' make: *** [iodev/libiodev.a] Error 2 I dont know why it is coming. I am using gcc-3

Re: Linux on Bochs

2008-12-27 Thread sahlot arvind
azz...@free-electrons.com> wrote: > Le Sat, 27 Dec 2008 02:23:47 -0500, > "sahlot arvind" a écrit : > > > I was trying to do all that on FC9 but unfortunately my system > > crashed and I have installed Ubuntu now. > > I am new in dealing with things like se

Re: Linux on Bochs

2008-12-26 Thread sahlot arvind
homas.petazz...@free-electrons.com> wrote: > Le Fri, 26 Dec 2008 05:45:17 -0500, > "sahlot arvind" a écrit : > > > I am trying to use bochs for learning linux kernel. But I am unable > > to build bochs from its source code. > > You should probably try to

Linux on Bochs

2008-12-26 Thread sahlot arvind
Hi Everyone, I am trying to use bochs for learning linux kernel. But I am unable to build bochs from its source code. I am getting a compile time error. I am trying to build bochs-2.1.1 with gcc-4.3.2. I have tried with gcc-3.4.2 and gcc-3.4.0 as well. The error which comes while using gcc-4.3.2 g

Re: schdule() doubt

2008-11-14 Thread sahlot arvind
Well I think during context switch [schedule()] we disable interrupts and thus there is no point of corruption. Anyway specific to your query, actually i saw that .. set_current_state (TASK_INTERRUPTIBLE) schedule() I guess there must be some sort of locking etc. if you can locate me in the code

Re: how to ask grep to search specific file recurisively?

2008-11-06 Thread sahlot arvind
In case of exec, a separate grep is invoked for each file found by find. So if there are 100 files found, you will be invoking 100 greps. In case of xargs, a set of files is given as argument to grep, you can also specify the number of files to be given in each set. e.g. find . -type f -iname "*.h

Re: Monitoring process end under Kernel

2008-11-05 Thread sahlot arvind
Since all processes are forked out of some already existing process, I guess you can place a hook in the implementation of fork. Maybe inside kernel/sched.c. Similarly look for the function which cleans up the process information when it gets over, that should be the place to put in the other hook.

Re: unable to rmmod

2008-11-05 Thread sahlot arvind
I am not sure but I think once oops happens then you may or may not remove the module. I think it really depends on how much the oops has affected the system. Try force remove though but I vaguely recall the same problem and I had to resort to reboot. On Wed, Nov 5, 2008 at 7:28 AM, <[EMAIL PROTEC

Re: Reg : module init and exit function

2008-11-05 Thread sahlot arvind
>The reason should be we are never going to unload the module. once the >linux is shutdown its going to poweroff the cpu so no need to cleanup. But what if there are some operations specified in the exit function of module for cleaning up, which is specific to the module e.g. flushing some module

Re: question on linux elf image

2008-10-16 Thread sahlot arvind
Hey Sri, can you send over the attached document? Thanks On Tue, Oct 14, 2008 at 10:13 AM, Sri Ram K Vemulpali <[EMAIL PROTECTED]>wrote: > 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, Dh

Re: arm926ej-s -- toolchain recommendation

2008-08-24 Thread sahlot arvind
try this - http://www.codesourcery.com/gnu_toolchains/arm Thanks On Sun, Aug 24, 2008 at 8:35 PM, Roman Mashak <[EMAIL PROTECTED]> wrote: > Hello, > > 2008/8/24 Om Narasimhan <[EMAIL PROTECTED]>: > > http://mirror.switch.ch/ftp/mirror/eldk/eldk/4.1/ > > > > has (2) ARM tool chains. libc and ucli

Re: Linux kernel booting code flow.

2008-06-12 Thread sahlot arvind
It is head.S. Depending on the arch which you have built your kernel for, head.S for that corresponding arch is the starting place. - A On 6/13/08, Mohamed Thalib .H <[EMAIL PROTECTED]> wrote: > > Thanks Mulyadi. > - > Best Regards, > Mohamed Thalib .H > GDA Technologies > L&T InfoTech Park, >

Re: Regarding Page Swap out

2008-06-12 Thread sahlot arvind
Thanks guys! On Thu, Jun 12, 2008 at 12:15 PM, Johannes Weiner <[EMAIL PROTECTED]> wrote: > Hi, > > "sahlot arvind" <[EMAIL PROTECTED]> writes: > > > Guys, > > > > 1. If I allocate a page of memory through kmalloc () inside my driver > th

Regarding Page Swap out

2008-06-11 Thread sahlot arvind
Guys, 1. If I allocate a page of memory through kmalloc () inside my driver then are there chances in future that this page might get swapped out? I mean as in kernel pages never get swapped out so I am bit confused if kmalloc'd pages are candidate for being swapped out or not? 2. Similiar to 1.

Re: How to read Page Table Entry in the linux kernel module?

2008-05-28 Thread sahlot arvind
I am trying to understand how can I read the pte using pte_page. Please could you explain? On 5/28/08, Cédric Augonnet <[EMAIL PROTECTED]> wrote: > > 2008/5/28 sahlot arvind <[EMAIL PROTECTED]>: > > I am working on Linux 2.6 and inside the init function of my mo

How to read Page Table Entry in the linux kernel module?

2008-05-28 Thread sahlot arvind
I am working on Linux 2.6 and inside the init function of my module I am doing this - - init_module () { va = kmalloc (4096, GFP_KERNEL); } -- Now I want to read the page table entry for this va? What is the right way to do that? Thanks in advance - A

Do Kernel Threads have different address space?

2008-05-21 Thread sahlot arvind
Hello Do kernel threads have different address space like User processes have? I mean if I allocate some memory in kernel thread A then can kernel thread B see it or can some driver see it? Thanks in advance - A

Re: I want to learn Linux Kernel Development

2008-05-03 Thread sahlot arvind
I want to learn Linux Kernel Programming. I have books like Understanding the Linux Kernel, Linux Kernel Development and The Linux Kernel Module Programming, but I don't know how to start. Should I play with my existing Kernel or should I install another Linux using Virtualization? IMO installing

Re: Q on Fix-mapped linear address

2008-04-27 Thread sahlot arvind
AIL PROTECTED]> wrote: > > Let me try > > On Sun, Apr 27, 2008 at 7:56 PM, sahlot arvind <[EMAIL PROTECTED]> wrote: > > What is the actual difference between Fix-mapped linear addresses and > linear > > addresses of kernel mapped in the first part of 4th GB of memory?

Q on Fix-mapped linear address

2008-04-27 Thread sahlot arvind
Kernel maps first part of 4th GB of memory using PAGE_OFFSET, while upper 128 MB of this 4th GB is left unmapped and is used for Fix-Mapped linear addresses and non-contiguous memory allocation. What is the actual difference between Fix-mapped linear addresses and linear addresses of kernel mapped

Re: Question on flow of control at the time of interrupt.

2008-04-27 Thread sahlot arvind
I understand that at 'and' instruction it is actually preserving mode bits as offset in the table immediately following this code. But why we are using such a trick? Are we getting some kind of optimization by doing so? On Sat, Apr 26, 2008 at 4:23 PM, sahlot arvind <[EMAIL PROT

Re: Linux kernel primer VS understaing the linux kernel .. ur comments

2008-04-26 Thread sahlot arvind
I think that for the first go *Linux Kernel Development* by Robert Love would be the best alternative. Once you get the overview you can go for mmore detailed and advanced books. - A On Sun, Apr 27, 2008 at 1:54 AM, Adrian Bunk <[EMAIL PROTECTED]> wrote: > On Sun, Apr 27, 2008 at 04:46:36AM +090

Re: Q on Linux Memory Management (page tables)

2008-04-26 Thread sahlot arvind
Thanks Robert. I have 3rd edition as well. But it doesnt help much. One and the same story. On Sun, Apr 27, 2008 at 12:00 AM, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > On Sat, 26 Apr 2008, sahlot arvind wrote: > > > I am trying to understand linux memory management stuff

Q on Linux Memory Management (page tables)

2008-04-26 Thread sahlot arvind
I am trying to understand linux memory management stuff. I am reading Understanding Linux Kernel - 2nd Edition. I am at chapter 2 only and I am confused like anything. It says that kernel uses 3-level paging. In case of PAE is enabled it actually uses page middle directory. My question is when IA-3

Re: Question on flow of control at the time of interrupt.

2008-04-26 Thread sahlot arvind
re question why do we have 16 handlers in each exception stub? why not just 1 (e.g. __irq_svc) or 2 (__irq_usr and __irq_svc)? and what is use of __irq_usr? I am sorry I have put lot of questions in this email. But answers to them would really help me in understanding the code. Thanks in advance

Re: Question on flow of control at the time of interrupt.

2008-04-25 Thread sahlot arvind
Thanks Russell. I will re-try and get back in case dont understand. - A On Sat, Apr 26, 2008 at 2:09 AM, Russell King - ARM Linux < [EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 02:31:20PM +0530, sahlot arvind wrote: > > Guys, > > > > I am trying to understand

Re: Question on flow of control at the time of interrupt.

2008-04-25 Thread sahlot arvind
Where do we jump after executing 'b vector_irq + stubs_offset'? Thanks On 4/25/08, eric miao <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 25, 2008 at 5:01 PM, sahlot arvind <[EMAIL PROTECTED]> wrote: > > Guys, > > > > I am trying to understand the flow of

Re: Dynamic linking on Linux

2008-04-25 Thread sahlot arvind
>Now a new process is loaded to memory, which utilizes a .so already in memory. How does ld.so know if the required .so is already in >memory and what is its physical address? I think loader keeps track of which libraries are there in the memory and their location. Execuatble file of the program c

Question on flow of control at the time of interrupt.

2008-04-25 Thread sahlot arvind
Guys, I am trying to understand the flow of control when an interrupt comes. I am reading linux-2.6.24 src code and looking at arch/arm/kernel/entry-armv.S. At the bottom of this file I see the vector table as below - __vectors_start: swi SYS_ERROR0 b vector_und + stubs_offset ldr p

Re: Why two stacks per process?

2008-04-24 Thread sahlot arvind
u, Apr 24, 2008 at 7:05 PM, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > On Thu, 24 Apr 2008, sahlot arvind wrote: > > > Yes. I agree with Robert. There are two stacks per process. But why > > cannot we just use one stack as I said earlier? > > while there may be other rea

Re: Why two stacks per process?

2008-04-24 Thread sahlot arvind
Yes. I agree with Robert. There are two stacks per process. But why cannot we just use one stack as I said earlier? - A On 4/24/08, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > On Thu, 24 Apr 2008, dinesh bansal wrote: > > > AFAIK there is only one kernel stack and all the processes share > >

Why two stacks per process?

2008-04-24 Thread sahlot arvind
Why do we have two stacks per process i.e. one user mode and other kernel mode? As soon as process enters into kernel mode it starts using kernel mode stack, but as soon as it comes out of kernel mode stack there is nothing in the kernel mode stack. So cannot we simply have a single stack i.e. just

Re: where to look at userspace implementation of fork() and clone()?

2008-04-21 Thread sahlot arvind
I think what you are looking for is implemented in C library. Look into the C lib code for fork implementation. - A On 4/22/08, Michael Kerrisk <[EMAIL PROTECTED]> wrote: > > On Mon, Apr 21, 2008 at 10:18 PM, Michael Kerrisk > <[EMAIL PROTECTED]> wrote: > > On Mon, Apr 21, 2008 at 10:06 PM, Mich

Re: How many kernel threads will be created

2008-04-16 Thread sahlot arvind
Ok. My turn - User Process - There is nothing like kernel process. Its just user process, which sometimes executes in user mode and sometimes in kernel mode. User Thread - Linux doesnt have the concept of thread. It does not implement threads separately. Thread is just a process for linux. However

Re: Working with kernel.

2008-04-15 Thread sahlot arvind
the real kernel developers do that? how do they verify the code? > How if we wanne to debug the filesystem interface and some char driver > interfaces like ttys etc. > > Regards, > Mukund Jampala > > > On 4/12/08, sahlot arvind <[EMAIL PROTECTED]> wrote: > > This mu

Re: Working with kernel.

2008-04-12 Thread sahlot arvind
This much should be enough. Try to look into the source code as well. You might not understand at this stage but just get a feel of it, that should be fine. Some part of any operating system is h/w specific and thus stick with one arch at this stage e.g. x86 or ARM. Understanding Linux kernel talks

Re: Reader/writer semaphores

2008-04-07 Thread sahlot arvind
Dear Bhanu, Let me put it into simple words. If you want to protect a write operation such as "a++" where "a" is global variable of your program/module (i.e. it is manipulated by your code only) then please use write semaphore. You will play safe. Otherwise if "a" is a variable inside kernel and

Re: Reader/writer semaphores

2008-04-03 Thread sahlot arvind
Bhanu, I think your question is - If user thread UT1 is trying to read some data (through sys call because you cannot access kernel data directly), which is modifiable by kernel thread KT1 then along with the protection of your critical section(where you are reading the data) the data, which KT1 m

Re: starting function for kernel process

2008-03-30 Thread sahlot arvind
True. but I think before start_kernel what comes into picture lies in head.S. Of course it is arch specific. Thus the actual start up code is in head.S - for i386 it is arch/i386/kernel/head.S for ARM it is arch/arm/kernel/head.S AFAIK from there onwards control jumps to start_kernel () in init/

Re: Debugging with UML

2008-03-26 Thread sahlot arvind
Its working now. I ran uml in one terminal and from other i attached gdb to uml process. it worked. A On Wed, Mar 26, 2008 at 4:50 PM, sahlot arvind <[EMAIL PROTECTED]> wrote: > Hi Guys, > > I am learning how to debug the kernel using UML. > I am doing the following

Debugging with UML

2008-03-26 Thread sahlot arvind
Hi Guys, I am learning how to debug the kernel using UML. I am doing the followings - $gdb linux .. .. (gdb)set args ubda=rootfs mem=128M (gdb)r .. .. Now onwards linux runs properly and I get the command prompt. At this point when linux is running fine, what should I do to stop the kernel? I mea

Re: Hi all......

2008-03-11 Thread sahlot arvind
just to add - Linux Kernel development by Robert Love would be the best i guess. On Wed, Mar 12, 2008 at 9:41 AM, ANOOP <[EMAIL PROTECTED]> wrote: > > > On Wed, Mar 12, 2008 at 9:12 AM, vasant j <[EMAIL PROTECTED]> wrote: > > Hi i am kernel newbie ,kindly suggest me any linux pdf or book to start

Mailing list for Cryptography

2008-02-26 Thread sahlot arvind
Hi Folks, Any mailing list for Cryptography in Linux e.g. any mailing list for Open Source lib implementation of PKCS #11 in linux. Thanks - A

Re: mailling list for file systems stuff

2008-02-11 Thread sahlot arvind
Thanks a lot man! On 2/11/08, Manish Katiyar <[EMAIL PROTECTED]> wrote: > > On Feb 11, 2008 1:07 PM, sahlot arvind <[EMAIL PROTECTED]> wrote: > > The reason I asked is because I dont have much knowledge of UML. > > Can you give me some pointers/links to learn

Re: mailling list for file systems stuff

2008-02-10 Thread sahlot arvind
The reason I asked is because I dont have much knowledge of UML. Can you give me some pointers/links to learn about this? Can we do source level debugging on UML? Thanks On 2/11/08, Manish Katiyar <[EMAIL PROTECTED]> wrote: > > On Feb 11, 2008 1:00 PM, sahlot arvind <[EMAIL PR

Re: mailling list for file systems stuff

2008-02-10 Thread sahlot arvind
Your welcome! Just a question - what is your environment? Are you using some system emulator? what looks to me is that you are running User Mode Linux? On 2/11/08, Manish Katiyar <[EMAIL PROTECTED]> wrote: > > On Feb 11, 2008 12:45 PM, sahlot arvind <[EMAIL PROTECTED]> wr

Re: mailling list for file systems stuff

2008-02-10 Thread sahlot arvind
You can ask your questions here itself. I guess. On 2/11/08, Manish Katiyar <[EMAIL PROTECTED]> wrote: > > Hi, > > Anyone aware of any file system specific mailing lists for newbies. > All I know of linux-fsdevel (this is not suitable for newbies :-( > questions ) and some mailling lists for speci

Re: TLB Question

2008-02-05 Thread sahlot arvind
ulyadi Santosa <[EMAIL PROTECTED]> wrote: > > Hi... > > On 2/5/08, sahlot arvind <[EMAIL PROTECTED]> wrote: > > > TLB entries are filled by H/W and not explicitly by kernel. Whenever MMU > > translates VA to PA it caches that translation into TLB. If TLB is f

Re: TLB Question

2008-02-04 Thread sahlot arvind
> E.g. who fills, flushes & refills the TLB entries? TLB entries are filled by H/W and not explicitly by kernel. Whenever MMU translates VA to PA it caches that translation into TLB. If TLB is full then MMU uses its own algorithms to replace some entry in TLB e.g. MMU might consider TLB as circular

Re: Question on kernel startup

2008-01-24 Thread sahlot arvind
And one more question - can we load linux image any where in the memory and run? Thanks - A. On 1/24/08, Rene Herman <[EMAIL PROTECTED]> wrote: > > On 24-01-08 14:02, sahlot arvind wrote: > > > That makes sense. Thanks a lot. So position independent code is one > > whe

Re: Question on kernel startup

2008-01-24 Thread sahlot arvind
" that is >relevant and not any absolute values. That makes sense. Thanks a lot. So position independent code is one wherein all the branch instructions are PC relative. Right? And is the entire Linux Kernel Position Independent Code??? Thanks - A. On 1/24/08, Rene Herman <[EMAIL PROTECT

Re: in kernel compilation of ext3

2008-01-24 Thread sahlot arvind
It is called when we insert the FS module. But as you have compiled ext3 module along with kernel then I think register function gets called during boot process. On 1/24/08, Onkar <[EMAIL PROTECTED]> wrote: > > I compiled the kernel with CONFIG_EXT3_FS=y ; having done that now , do > these func

Question on kernel startup

2008-01-24 Thread sahlot arvind
I compiled kernel for ARM processor. I am trying to trace kernel control flow. I am looking at file "arch/arm/kernel/head.S" . Code starting with --- __INIT .type stext, #function ENTRY(stext) mov r12, r0 mov r0, #PSR_F_BIT | PSR_I_BIT | MO

Re: Question on Memory Leaks in Module

2008-01-23 Thread sahlot arvind
/24/08, sahlot arvind <[EMAIL PROTECTED]> wrote: > > >And, memory allocated by pages are considered "kernel memory". So > >unless you mark them somehow, there is no difference between the ones > >allocated by module, syscall and so on. > > Makes sense! > T

Re: Question on Memory Leaks in Module

2008-01-23 Thread sahlot arvind
memory is lost and kernel wont be able to use that memory in future. Right? On 1/24/08, Mulyadi Santosa <[EMAIL PROTECTED]> wrote: > > Hi... > On Jan 24, 2008 1:32 PM, sahlot arvind <[EMAIL PROTECTED]> wrote: > > Thanks to all for their resonse! > > > > O

Re: Question on Memory Leaks in Module

2008-01-23 Thread sahlot arvind
Thanks to all for their resonse! Ok, just one thing - When I do lsmod - it shows the memory used by loaded LKMs. So if there is a leak in LKM1 then after executing the function (which is doing kmalloc but forgetting to do kfree) of LKM1, lsmod should report an increased memory usage by LKM1. Am I

Re: Fille system

2008-01-23 Thread sahlot arvind
Some links, which I referred to - http://www.coda.cs.cmu.edu/doc/talks/linuxvfs/ http://www.atnf.csiro.au/people/rgooch/linux/vfs.txt Though I am not expert. Thanks On 1/23/08, Li Xiaodong <[EMAIL PROTECTED]> wrote: > > I think source code is the best material for you. > > You can also read s

Question on Memory Leaks in Module

2008-01-23 Thread sahlot arvind
I have written a simple LKM. I just want to test whether there is a memory leak in the module or not? Could any body suggest me how to test the memory leakage in LKM? Thanks - A.

Re: Question on asmlinkage

2008-01-16 Thread sahlot arvind
; > please refer this link > http://kernelnewbies.org/FAQ/asmlinkage > > > On Jan 16, 2008 5:05 PM, Mulyadi Santosa < [EMAIL PROTECTED]> > wrote: > > > Hi > > > > On Jan 16, 2008 6:27 PM, sahlot arvind < [EMAIL PROTECTED]> wrote: > > > I am seei

Question on asmlinkage

2008-01-16 Thread sahlot arvind
I am seeing lot of funtions prefixed with "asmlinkage". Shall I assume that any defined function prefixed with "asmlinkage" is System Call? BTW what is "asmlinkage"? Thanks - A.

Re: A quick question on VM

2008-01-12 Thread sahlot arvind
Thanks for your response! What is PAGE_OFFSET at 3GB on x86,? As you said PA to VA is found by subtracting PAGE_OFFSET, that means it is not like PA = VA. Right? On 1/11/08, Mahaveer Darade <[EMAIL PROTECTED]> wrote: > > > > On Jan 11, 2008 10:57 AM, sahlot arvind <[EM

A quick question on VM

2008-01-10 Thread sahlot arvind
Hi All, I just started learning Linux Virtual Memory Management Subsystem. I see the memory is divided into three zones. Comments in file mm/mmzone.h /* * ZONE_DMA < 16 MB ISA DMA capable memory * ZONE_NORMAL 16-896 MB direct mapped by the kernel * ZONE_HIGHMEM > 896 MB

Re: Development environment for embedded linux

2007-12-26 Thread sahlot arvind
Thanks buddy! I will ask further if needed. Cheers! Arvind On Dec 26, 2007 7:43 PM, Thomas Petazzoni <[EMAIL PROTECTED]> wrote: > Le Mon, 24 Dec 2007 22:32:25 +0530, > "sahlot arvind" <[EMAIL PROTECTED]> a écrit : > > > Could any body help me in setting up m

what is pidmap?

2007-12-26 Thread sahlot arvind
In kernel/fork.c - In function do_fork (), i see that we allocate some pidmap. Could someone please tell me - what is pidmap ? what is its use? Thanks - A

Re: why do we use while (0)

2007-12-25 Thread sahlot arvind
amp;mylist; printf ("hi\n"); if (i) INIT_LIST_HEAD(ptr); else { printf ("jkldkas\n"); } return 0; } -- Got the reason why while (0) is there. Thanks man! - Arvind On 12/26/07, sahlot arvind <[EMAIL PR

Re: why do we use while (0)

2007-12-25 Thread sahlot arvind
ntf ("hi\n"); if (i) { INIT_LIST_HEAD(ptr); } else { printf ("jkldkas\n"); } return 0; } -- And there is no compilation error. On 12/26/07, Li Zefan <[EMAIL PROTECTED]> wrote: > > sahlot arvind wrote:

why do we use while (0)

2007-12-25 Thread sahlot arvind
Recently I started looking into linux kernel and trying to understand the code. I am working with linux-2.6.9. in file include/llinux/list.h - I found something like this. #define INIT_LIST_HEAD(ptr) do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \ } while (0) My question is why do we

Re: Question about double pointers assignment

2007-12-25 Thread sahlot arvind
>#include >#include >intexterint[5][5]; >intexterint1[5]; >int main(void){ >int index0, index1; >int **temp1; >int *temp2; >temp2=exterint1; //* >temp1 = exterint; //x >The compiler will warn me that at line marked as x is "assignment from incompatible pointer type." >But "

Re: Hi Start_kernel

2007-11-16 Thread sahlot arvind
printf is a libarary function, while printk is implemented in kernel itself since kernel doesnt use library functions. printf displays on STD output, while printk logs the messages and kernel log demon displays that content on the screen. Apart from this, you can also pass the priority of the messa

Re: Where to start from?

2007-10-26 Thread sahlot arvind
points because the first step is a very daunting task and you are > much more likely to keep at it if you are learning about something you are > truly interested in. > > > > Cheers > > Al > ------ > > *From:* [EMAIL PROTECTED] [mailto: > [E

Where to start from?

2007-10-25 Thread sahlot arvind
Hi All, I am new to Linux kernel. Could any body suggest me where to start reading the source code? OR I first should read some books? best regards

Where to start?

2007-10-01 Thread sahlot arvind
Hi All, I am new to the kernel newbies list. I want to learn linux kernel code but finding it difficult to start from. Let me explain, if for example I have to understand a program then what I will do is, I will find out the main function and start analyzing the code and understand the flow and en