[RFC] tcp: How does SACK or FACK determine the time to start fast retransmition?

2012-06-20 Thread 李易
HI all, When tcp uses reno as its congestion control algothim, it uses tp->sacked_out as dup-ack. When the third dup-ack(under default condition) comes, tcp will initiate its fast retransmition. But how about sack ? According to kernel source code comments, when sack or fack tcp opti

Re: Sysfs class attribute problem

2012-06-20 Thread anish singh
On Wed, Jun 20, 2012 at 11:32 PM, Jeshwanth Kumar N K Jeshu wrote: > Hello > > Thank you anish for the reply, the code is I pasted below. > [code-starts] > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > static

Re: Sysfs class attribute problem

2012-06-20 Thread Jeshwanth Kumar N K Jeshu
Hello Thank you anish for the reply, the code is I pasted below. [code-starts] #include #include #include #include #include #include #include #include #include #include #include static char *gvar = "BeHonest"; // Store and Show functions.. static ssize_t attr1_store(struct class

RE: A confusion about invoking my syscall

2012-06-20 Thread Jeff Haran
From: 王哲 [mailto:wangzhe5...@gmail.com] Sent: Wednesday, June 20, 2012 1:16 AM To: Jeff Haran Cc: kernelnewbies Subject: Re: A confusion about invoking my syscall 2012/6/20 Jeff Haran mailto:jha...@bytemobile.com>> From: 王哲 [mailto:wangzhe5...@gmail.com] Sent: Mo

Re: user_mode(regs) macro in kernel

2012-06-20 Thread Anirban Roy
It checks whether exception happened in user mode or supervisor mode On Jun 20, 2012 5:15 PM, "sumeet linux" wrote: > Hi All, > > What is the meaning of user_mode(regs) macro ? What does it do ? > This macro used in many files in kernel like signal.c, trap.c, process.c > files. > From the code i

Re: user_mode(regs) macro in kernel

2012-06-20 Thread Mulyadi Santosa
On Wed, Jun 20, 2012 at 6:45 PM, sumeet linux wrote: > Hi All, > > What is the meaning of user_mode(regs) macro ?  What does it do ? I assume you were referring to: http://lxr.linux.no/#linux+v3.4.3/arch/x86/include/asm/ptrace.h#L164 right? let me paste the code here: return !!(regs->cs & 3) A

Re: Kernel 3.4 compile problem

2012-06-20 Thread Kaan Akşit
Dear Matthias, I am compiling it as sudo :( The funny thing, I can compile 3.2.5 without any problem. Best regards, Kaan 2012/6/19 Matthias Brugger > On 06/19/2012 02:43 PM, Kaan Akşit wrote: > >> Lieber Matthias, >> >> Vielen dank für ihre email :) Here is the English version of the output: >

user_mode(regs) macro in kernel

2012-06-20 Thread sumeet linux
Hi All, What is the meaning of user_mode(regs) macro ? What does it do ? This macro used in many files in kernel like signal.c, trap.c, process.c files. >From the code it looks like it checks is in USER mode or KERNEL mode, but still not clear on usage and implementation of this macro. Thanks.

Re: A confusion about invoking my syscall

2012-06-20 Thread 王哲
2012/6/20 Jeff Haran > ** ** > > ** ** > > *From:* 王哲 [mailto:wangzhe5...@gmail.com] > *Sent:* Monday, June 18, 2012 9:32 PM > *To:* Jeff Haran > *Cc:* kernelnewbies > *Subject:* Re: A confusion about invoking my syscall > > ** ** > > ** ** > > 2012/6/19 Jeff Haran > > > > >