__GFP_RECLAIMABLE in case of GFP_DMA, GFP_KERNEL etc.

2009-03-19 Thread Jagadeesh Bhaskar P
Any clues as to why is __GFP_RECLAIMABLE not set by default in GFP_DMA, GFP_KERNEL and such? -- With regards, Jagadeesh Bhaskar P Bugs are by far the largest and most successful class of entity, with nearly a million known species. In this respect they outnumber all the othe

Re: Ftrace

2009-03-19 Thread microbit
Hi, > TASK_RUNNING does not necessary means that the task is currently running > on a cpu. It means that it is ready to run or running. I haven't used ftrace yet, but from using commercial RTOSs on microcontrollers I had gotten used to the terminology : "RUNNABLE". I think that's a more appropria

Re: Ftrace

2009-03-19 Thread Frederic Weisbecker
Hi Paolo, On Thu, Mar 19, 2009 at 02:35:13PM +0100, Paolo wrote: > Hi! > I'm using ftrace in order to trace any task or process running. I'm > interesting to the context switch tracing. Ok, I've enabled sched_switch and > the results are in the trace file. > How can I interpretate correctly the re

Re: Zero-copy for large amounts of streaming data

2009-03-19 Thread Shawn Bohrer
On Thu, Mar 19, 2009 at 02:47:10PM +0800, Priya Suryanarayanan wrote: > > Thanks, Shawn. I did look at the SCSI st and sg drivers briefly and will > continue to do so. I guess I did not understand the purpose of the > nopage handler. > > You said: --start quote-- > I should also mention that get

Ftrace

2009-03-19 Thread Paolo
Hi! I'm using ftrace in order to trace any task or process running. I'm interesting to the context switch tracing. Ok, I've enabled sched_switch and the results are in the trace file. How can I interpretate correctly the results? What does the following mean? bash-3997 [01] 240.132281: 3997:120:R

Re: kernel timer problem

2009-03-19 Thread Durga Prasad
Hi, Make the following changes: TimerFunctionTimer.function = &timerFunction; Add an __exit section where you delete the timer del_timer (& TimerFunctionTimer); From: Saransh Mittal To: kernelnewbies@nl.linux.org Sent: Thursday, March 19, 2009 3:54:43 PM Subj

Re: kernel timer problem

2009-03-19 Thread Chetan Nanda
On Thu, Mar 19, 2009 at 4:37 PM, Nelson Castillo wrote: > On Thu, Mar 19, 2009 at 5:24 AM, Saransh Mittal > wrote: > (cut) > > /* Inside init_module */ > > init_timer ( &TimerFunctionTimer ); > > TimerFunctionTimer.expires = (jiffies + HZ); > > TimerFunctionTimer.function = timerFunction; > > add

Re: [ext2/ext3] Re-allocation of blocks for an inode

2009-03-19 Thread Sandeep K Sinha
Hi Greg, On Sun, Mar 15, 2009 at 9:00 AM, Greg Freemyer wrote: > On Sat, Mar 14, 2009 at 3:37 PM, Vineet Agarwal > wrote: >> Hello Greg, >> >> During relocation we are copying data block by block.. >> > Vineet, > > 1) Be advised that most Linux mailing lists to not like it when you > top post.  

Re: kernel timer problem

2009-03-19 Thread Nelson Castillo
On Thu, Mar 19, 2009 at 5:24 AM, Saransh Mittal wrote: (cut) > /* Inside init_module */ > init_timer ( &TimerFunctionTimer ); > TimerFunctionTimer.expires = (jiffies + HZ); > TimerFunctionTimer.function = timerFunction; > add_timer( &TimerFunctionTimer ); You could also do something like this:

Re: kernel timer problem

2009-03-19 Thread rahul p
I think you need to explicitly initialize the following instance variable of timer_list: TimerFunctionTimer.data = funct_parameter; /*function parameter; in your case a variable of type long*/ - Rahul Pydimukkala On Thu, Mar 19, 2009 at 3:54 PM, Saransh Mittal wrote: > Hey guys, > I m tryin

kernel timer problem

2009-03-19 Thread Saransh Mittal
Hey guys, I m trying to schedule a Kernel Timer such that a function I need runs when the timer expires. But with the current way I m doing it, the system always crashes. Heres what I have: ... ... /* Function Prototype */ void timerFunction( unsigned long ); ... ... /* Global

Re: request structure --

2009-03-19 Thread Yogesh Sobale
current_nr_sectors is the number of sectors yet to be transferred in the whole request whereas hard_cur_sectors is number of sectors in the current segment of the current bio yet to be transferred while processing the particular request. --Yogesh On Fri, Mar 13, 2009 at 12:01 PM, nidhi mit

Vlan Driver 8021q

2009-03-19 Thread Mohammed Mustaq
Hi .     Can you help me on kernel vlan driver [ 8021q  ]  interface related any document . I was browsing code for Linux24 and linux26 and seems architecturly changes . Thanks .      --- On Thu, 3/19/09, Mohammed Mustaq wrote: From: Mohammed Mustaq Subject: To: "Mustaq Mohammad" Cc: k

RE: Zero-copy for large amounts of streaming data

2009-03-19 Thread Priya Suryanarayanan
Thanks, Shawn. I did look at the SCSI st and sg drivers briefly and will continue to do so. I guess I did not understand the purpose of the nopage handler. You said: --start quote-- I should also mention that get_user_pages() does not map a user-mode > buffer into the kernel address space. It o