Rdefined GDT_ENTRY_DEFAULT_USER_DS

2012-10-23 Thread Fan Yang
Hi all: When I search the macro __USER_DS, I find that the GDT_ENTRY_DEFAULT_USER_DS has been redefined two times in the file arch/x86/asm/segment.h. Is that to compatible with the old kernel version? Thanks Fan ___ Kernelnewbies mailing list Kernel

Re: set_super_anon in fs/super.c

2012-10-23 Thread Abhijit Chandrakant Pawar
Hi Rohan, On Tue, 2012-10-23 at 18:47 +0530, Rohan Puri wrote: > > > On Tue, Oct 23, 2012 at 6:33 PM, Abhijit Chandrakant Pawar > wrote: > > I am working on the layered file systems. I came across a > function called set_super_anon. > This is a callback to the sget fu

looking for simple kernel source examples of, well, everything

2012-10-23 Thread Robert P. J. Day
while writing/updating a pile of kernel courseware over the next couple of months, i'm interested in bolstering everything in the courseware with actual examples ripped from the source code, so students can see all of the concepts in action. for example, to show how to use seq_file to write a

Re: set_super_anon in fs/super.c

2012-10-23 Thread Rohan Puri
On Tue, Oct 23, 2012 at 6:33 PM, Abhijit Chandrakant Pawar < abhi.c.pa...@gmail.com> wrote: > ** > I am working on the layered file systems. I came across a function called > set_super_anon. > This is a callback to the sget function to compare the superblock . This > function accepts two parameter

set_super_anon in fs/super.c

2012-10-23 Thread Abhijit Chandrakant Pawar
I am working on the layered file systems. I came across a function called set_super_anon. This is a callback to the sget function to compare the superblock . This function accepts two parameters. first is superblock * and second is void *. If you look at the definition of this function, the void*

Re: Regarding the Kernel Configuration Options

2012-10-23 Thread Anuz Pratap Singh Tomar
On Tue, Oct 23, 2012 at 4:43 AM, Rohan Puri wrote: > > > On Tue, Oct 23, 2012 at 8:48 AM, supratim chakraborty > wrote: > >> I was looking for some resources on the explanation on all (or even some >> for that matter) kernel configuration options that come up in the pre- >> compilation phase (ma

Re: online, possible and disabled cpus

2012-10-23 Thread Robert P. J. Day
On Tue, 23 Oct 2012, Srivatsa Bhat wrote: > Ah, that's the thing.. CPU hotplug does not always refer to > "physically pull out or plug in CPUs into the system". As you might > have gathered from reading the help text, it also refers to "soft" > offline/online of CPUs. As a result, CPU hotplug is u

Re: online, possible and disabled cpus

2012-10-23 Thread Srivatsa Bhat
On Tue, Oct 23, 2012 at 2:12 PM, Robert P. J. Day wrote: > On Tue, 23 Oct 2012, Srivatsa Bhat wrote: > >> I don't think we should worry too much about this.. I can think of a >> simple reason why one would want to iterate through all possible >> CPUs.. : IIUC, this function prints, for each softir

Fwd: creating own syscall on 2.6.37.3 and getting error on compilaton...

2012-10-23 Thread Filipe Rinaldi
On 22 October 2012 13:48, Tristan wrote: > How can you tell that cpu_rq() is a private macro? Because there is no > header for it? Be as specific as you can, I'd like to completely understand > what the concept. I'll try the current macro. Thanks Filipe. > > -Tristan Hi Tristan, By private

Re: online, possible and disabled cpus

2012-10-23 Thread Srivatsa Bhat
On Tue, Oct 23, 2012 at 2:04 PM, Robert P. J. Day wrote: > On Tue, 23 Oct 2012, Srivatsa Bhat wrote: > >> Hi, >> >> On Tue, Oct 23, 2012 at 12:43 AM, Robert P. J. Day >> wrote: >> > On Mon, 22 Oct 2012, Srivatsa Bhat wrote: >> > >> >> Hi, >> >> >> >> You might want to take a look at Documentation

Re: online, possible and disabled cpus

2012-10-23 Thread Robert P. J. Day
On Tue, 23 Oct 2012, Srivatsa Bhat wrote: > I don't think we should worry too much about this.. I can think of a > simple reason why one would want to iterate through all possible > CPUs.. : IIUC, this function prints, for each softirq, the number of > times it ran on a particular CPU. So if a CPU

Re: online, possible and disabled cpus

2012-10-23 Thread Robert P. J. Day
On Tue, 23 Oct 2012, Srivatsa Bhat wrote: > Hi, > > On Tue, Oct 23, 2012 at 12:43 AM, Robert P. J. Day > wrote: > > On Mon, 22 Oct 2012, Srivatsa Bhat wrote: > > > >> Hi, > >> > >> You might want to take a look at Documentation/cpu-hotplug.txt for > >> some details regarding online/possible CPUs.

Re: online, possible and disabled cpus

2012-10-23 Thread Srivatsa Bhat
Hi, On Tue, Oct 23, 2012 at 3:03 AM, Robert P. J. Day wrote: > On Mon, 22 Oct 2012, Srivatsa Bhat wrote: > >> Hi, >> >> You might want to take a look at Documentation/cpu-hotplug.txt for >> some details regarding online/possible CPUs... > > i'll do one more post on this, even though i never ima

Re: online, possible and disabled cpus

2012-10-23 Thread Srivatsa Bhat
Hi, On Tue, Oct 23, 2012 at 12:43 AM, Robert P. J. Day wrote: > On Mon, 22 Oct 2012, Srivatsa Bhat wrote: > >> Hi, >> >> You might want to take a look at Documentation/cpu-hotplug.txt for >> some details regarding online/possible CPUs... > > ah, quite so, although that file is definitely out of