Re: getting panic during kmalloc

2008-07-09 Thread gagan grover
I have tried kmalloc with both GFP_KERNEL and GFP_ATOMIC. and if i m using delay in the loop then it runs for more iterations. Without delay it was running approx. 95K iterations but after the delay of 40 us, it is running approx. 256K iterations... and giving the same panic after it.

Re: getting panic during kmalloc

2008-07-09 Thread Shreyansh Jain
Hi Gagan, Please see comments inline. On 7/9/08, gagan grover [EMAIL PROTECTED] wrote: I have tried kmalloc with both GFP_KERNEL and GFP_ATOMIC. and if i m using delay in the loop then it runs for more iterations. Without delay it was running approx. 95K iterations but after the delay of 40

Re: serial driver changes

2008-07-09 Thread Hinko Kocevar
Octavian Purdila wrote: On Tuesday 08 July 2008, Hinko Kocevar wrote: Hi Hinko, -MODULE_PARM(ussp_debug, i); -MODULE_PARM(ussp_set_lowlatency, i); +//MODULE_PARM(ussp_debug, i); +//MODULE_PARM(ussp_set_lowlatency, i); +/* what is wrong with this lines ??? */

Re: getting panic during kmalloc

2008-07-09 Thread Shreyansh Jain
Oops, sorry, just saw this line: Pid: 16998, comm: dbg_fmr_create Not tainted 2.6.9-42.ELsmp On 7/9/08, Shreyansh Jain [EMAIL PROTECTED] wrote: Hi Gagan, Please see comments inline. On 7/9/08, gagan grover [EMAIL PROTECTED] wrote: I have tried kmalloc with both GFP_KERNEL and

Re: serial driver changes

2008-07-09 Thread Hinko Kocevar
This is second stab at the ussp driver. I'm not sure about the TTY_NORMAL that was in port-tty-flip.flag_buf_ptr under the USSP_READ - should this flag character be inserted into the flip buffer after the data bytes, as seen in the patch? Thanks, Hinko -- ČETRTA POT, d.o.o., Kranj Planina 3

Freebsd namei equivalent in Linux VFS

2008-07-09 Thread naresh kumar
Folks, Is there any equivalent of this namei(9) freebsd thingy in linux ? Here is the man page for the freebsd namei filters say http://www.freebsd.org/cgi/man.cgi?query=nameisektion=9 Any pointers for this in linux are appreciated. Thanks Naresh.

Re: getting panic during kmalloc

2008-07-09 Thread Mulyadi Santosa
Hi... On Wed, Jul 9, 2008 at 1:03 PM, gagan grover [EMAIL PROTECTED] wrote: I have tried kmalloc with both GFP_KERNEL and GFP_ATOMIC. and if i m using delay in the loop then it runs for more iterations. Without delay it was running approx. 95K iterations but after the delay of 40 us, it is

Re: getting panic during kmalloc

2008-07-09 Thread Lin Ming
Disagree. kmalloc allocates from kmalloc_caches, if kmalloc(24, ..), internally it allocates 32 (2^5) bytes. On Wed, Jul 2, 2008 at 9:08 PM, Rajat Jain [EMAIL PROTECTED] wrote: Hi, Although kmalloc() gives you 24 bytes per call that you can use, but internally it allocates in pages, and

Re: serial driver changes

2008-07-09 Thread Octavian Purdila
On Wednesday 09 July 2008, Hinko Kocevar wrote: This is second stab at the ussp driver. I'm not sure about the TTY_NORMAL that was in port-tty-flip.flag_buf_ptr under the USSP_READ - should this flag character be inserted into the flip buffer after the data bytes, as seen in the patch? From

Re: serial driver changes

2008-07-09 Thread Hinko Kocevar
Octavian Purdila wrote: On Wednesday 09 July 2008, Hinko Kocevar wrote: This is second stab at the ussp driver. I'm not sure about the TTY_NORMAL that was in port-tty-flip.flag_buf_ptr under the USSP_READ - should this flag character be inserted into the flip buffer after the data bytes, as

Re: Freebsd namei equivalent in Linux VFS

2008-07-09 Thread naresh kumar
Thanks! Look at path_lookup() in fs/namei.c. (Hint: if you follow the call chain from the sys_open() system call you can figure it out yourself).

Defining new variables for use in multiple c files. How do I create header files that can be #included in multiple c files?

2008-07-09 Thread Bradley Hanna
I am trying to define a variable that needs to be manipulated by one c file in the kernel and read by another c file in a different directory. I have defined the variable in a header file that is #included in both c files. The problem is when I compile the kernel I get an error saying that the

Re: Defining new variables for use in multiple c files. How do I create header files that can be #included in multiple c files?

2008-07-09 Thread Erik Mouw
On Wed, Jul 09, 2008 at 03:56:21PM -0400, Bradley Hanna wrote: I am trying to define a variable that needs to be manipulated by one c file in the kernel and read by another c file in a different directory. I have defined the variable in a header file that is #included in both c files. The

Re: Defining new variables for use in multiple c files. How do I create header files that can be #included in multiple c files?

2008-07-09 Thread Alberto Giménez
On Wed, Jul 9, 2008 at 9:56 PM, Bradley Hanna [EMAIL PROTECTED] wrote: I am trying to define a variable that needs to be manipulated by one c file in the kernel and read by another c file in a different directory. I have defined the variable in a header file that is #included in both c files.