Re: confusing code....whats the point of this construct ?

2015-03-12 Thread Bjørn Mork
valdis.kletni...@vt.edu writes: On Wed, 11 Mar 2015 15:17:44 +0100, Nicholas Mc Guire said: So the wait_event_timeout condition here ends up being (empty || skip) but what is the point of puting this code into the parameter list of wait_event_timeout() ? Would it not be equivalent to:

Re: confusing code....whats the point of this construct ?

2015-03-12 Thread Valdis . Kletnieks
On Wed, 11 Mar 2015 17:46:56 +0100, Nicholas Mc Guire said: ret = ({ long __ret = (5*250); do { _cond_resched(); } while (0); if (!({ bool __cond = (({ Gaak. ret = wait_event_timeout(mgr-tx_waitq, check_txmsg_state(mgr,

Re: confusing code....whats the point of this construct ?

2015-03-12 Thread Bjørn Mork
valdis.kletni...@vt.edu writes: On Wed, 11 Mar 2015 18:37:32 -, Jeff Haran said: I don't understand the problem here. The caller passes in a condition to be evaluated in a loop. Many times that condition is quite simple (e.g. a counter being non-zero). If it was a function the caller

RCU is not safe enough to protect __d_lookup ?

2015-03-12 Thread Rock Lee
Hi, all: I am studying the dcache in VFS recently . I've found that hlist of dcache is already protected by RCU in __d_lookup.Is it necessary for the function -- d_lookup using sequence lock to protect the hlist again? struct dentry * d_lookup(struct dentry * parent, struct qstr * name){

Re: I am new here

2015-03-12 Thread Alexander Kuleshov
Hello, There are many ways how to start with the kernel. Try to search kernelnewbies archive, there are many questions like your. The good way to start is a join to the Eudyptula Challenge - http://eudyptula-challenge.org/. From myself i can recommed, try to select what you are interested in

I am new here

2015-03-12 Thread Leonardo Ariel Carreras Rodríguez
Hello! I am new here, and I want to know how to get started, maybe with the simplest way available. Regards, Leonardo ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: I am new here

2015-03-12 Thread karthik nayak
Hey leonardo, Go through the mailing list, for old mails on the same topic. Maybe have a look at the eudyptula challenge. Regards On Thu, Mar 12, 2015, 9:58 PM Leonardo Ariel Carreras Rodríguez zc77...@gmail.com wrote: Hello! I am new here, and I want to know how to get started, maybe with

Understanding the mapping of physical memory to kernel address space

2015-03-12 Thread Sunny Shah
Hello, This is my first mail on this list, so please let me know if I'm erring. I'm reading Bovet and Cesati's Understanding the Linux Kernel, specifically the chapter Memory Addressing, sub-section Kernel Page Tables. Here they describe how Linux initializes its page tables for various RAM

Re: I am new here

2015-03-12 Thread Leonardo Ariel Carreras Rodríguez
Hello again, Only to be sure, do you have to write something special to lit...@eudyptula-challenge.org ? Does it take a lot of time? I keep not receiving anything for almost an hour. Leonardo Carreras +595 971 831 287 2015-03-12 13:34 GMT-03:00 karthik nayak karthik@gmail.com: Hey leonardo,

Re: I am new here

2015-03-12 Thread Leonardo Ariel Carreras Rodríguez
Hello Jonathan, In particular, I am asking about how much time do you have to wait until you get accepted to join the challenge. If s/he has to approve each mail address, this will take a lot of time. 2015-03-12 15:31 GMT-03:00 Jonathan Jin jjin082...@gmail.com: Leonardo Ariel Carreras

Re: I am new here

2015-03-12 Thread Valdis . Kletnieks
On Thu, 12 Mar 2015 13:27:21 -0300, Leonardo Ariel Carreras Rodríguez said: I am new here, and I want to know how to get started, maybe with the simplest way available. Something the others haven't addressed - do you have an understanding of *why* you are here? As the how to get started will

Re: I am new here

2015-03-12 Thread Leonardo Ariel Carreras Rodríguez
2015-03-12 17:33 GMT-03:00 valdis.kletni...@vt.edu: On Thu, 12 Mar 2015 13:27:21 -0300, Leonardo Ariel Carreras Rodríguez said: I am new here, and I want to know how to get started, maybe with the simplest way available. Something the others haven't addressed - do you have an understanding

Help with learning scheduler O(1)

2015-03-12 Thread Meyer Lansky
Hello all continue to study the scheduler is O(1 ) there was one difficulty with the string 2 on 3, in that these blocking occurs after lines ? a reference to the code that study - http://lxr.free-electrons.com/source/kernel/sched.c?v=2.6.36 what I learn on line 4682 to 4695. 1 

RE: Understanding the mapping of physical memory to kernel address space

2015-03-12 Thread Jeff Haran
-Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies-boun...@kernelnewbies.org] On Behalf Of Arun KS Sent: Thursday, March 12, 2015 11:03 AM To: Sunny Shah Cc: kernelnewbies Subject: Re: Understanding the mapping of physical memory to kernel address

Re: I am new here

2015-03-12 Thread Jessica Ross
It takes a little time for him to get back to you. Patience is something you'll learn when dealing with the Eudyptula challenge. :) --Jess On Thu, Mar 12, 2015 at 1:24 PM, Leonardo Ariel Carreras Rodríguez zc77...@gmail.com wrote: Hello again, Only to be sure, do you have to write something

Re: Understanding the mapping of physical memory to kernel address space

2015-03-12 Thread Arshad Hussain
On 12-Mar-2015, at 10:02 am, Sunny Shah shahsunny...@gmail.com wrote: Hello, This is my first mail on this list, so please let me know if I'm erring. I'm reading Bovet and Cesati's Understanding the Linux Kernel, specifically the chapter Memory Addressing, sub-section Kernel Page

Re: Understanding the mapping of physical memory to kernel address space

2015-03-12 Thread Arun KS
Hello Sunny, On Thu, Mar 12, 2015 at 10:32 PM, Sunny Shah shahsunny...@gmail.com wrote: Hello, This is my first mail on this list, so please let me know if I'm erring. I'm reading Bovet and Cesati's Understanding the Linux Kernel, specifically the chapter Memory Addressing, sub-section

Re: I am new here

2015-03-12 Thread Jonathan Jin
Leonardo Ariel Carreras Rodríguez zc77...@gmail.com writes: In particular, I am asking about how much time do you have to wait until you get accepted to join the challenge. If s/he has to approve each mail address, this will take a lot of time. Again, it varies. Challenge joins shouldn't take

Re: I am new here

2015-03-12 Thread Jonathan Jin
Leonardo Ariel Carreras Rodríguez zc77...@gmail.com writes: Only to be sure, do you have to write something special to lit...@eudyptula-challenge.org ? As far as I know, nothing special needed; just something to the effect of I'd like to take part in the Eudyptula Challenge. Does it take a

RCU is not safe enough to protect __d_lookup ?

2015-03-12 Thread Rock Lee
Hi, all: I am studying the dcache in VFS recently . I've found that hlist of dcache is already protected by RCU in __d_lookup.Is it necessary for the function -- d_lookup using sequence lock to protect the hlist again? struct dentry * d_lookup(struct dentry * parent, struct qstr * name){

Re: Tracing allocators of virtual memory and main memory

2015-03-12 Thread sahil aggarwal
Sample Output: mem-3374 [005] 589012.489483: mm_fault: (do_page_fault+0x3b3/0x3d8 - handle_mm_fault) arg1=512 mem-3374 [005] 589012.489486: mm_fault: (do_page_fault+0x3b3/0x3d8 - handle_mm_fault) arg1=512 mem-3374 [005] 589012.489489: mm_fault: