USB controller driver question

2009-10-08 Thread Vishal Thanki
Hi all, I am debugging an issue for a USB device (usb wifi dongle from TP-LINK which is using Ralink chipset). I am using it on an embedded board running Linux 2.6.30 on ARM architecture. The board has USB controller from synopsys, and they've provided the driver for the same. The controller

Re: Say Hi and language exchange(I'm Chinese)

2009-04-24 Thread Vishal Thanki
http://lwn.net/Kernel/LDD3/ xiaohuidexinge wrote: Thank you very much. :) what is the full name of the book LDD3? And where I can find it? ??2009-04-24??Pei Lin telent...@gmail.com ?? ^_^ you go to the wrong place,if you a newbie you can see the book LDD3 to start and when u

Re: problem in Network device driver.

2009-04-22 Thread Vishal Thanki
Following link explains usage of oprofile http://www.serpentine.com/blog/2006/12/17/make-linux-performance-analysis-easier-with-oprofile/ Vishal Devesh Sharma wrote: On Tue, Apr 21, 2009 at 9:48 PM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Hi! On 18:37 Tue 21 Apr

Re: problem in Network device driver.

2009-04-22 Thread Vishal Thanki
Its handled by tcp stack within linux kernel. If you want to take a look at the code, then see open linux/net/ipv4/tcp.c and look at tcp_sendmsg(). Vishal Devesh Sharma wrote: One more query I have in my mind, let's say user wants to transfer 1MB data (callling send() only once), and socket

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-22 Thread Vishal Thanki
Jeffrey Cao wrote: On Tue, Apr 21, 2009 at 07:10:17PM +0530, Vishal Thanki wrote: Jeffrey Cao wrote: On 2009-04-21, Vishal Thanki vishaltha...@gmail.com wrote: Fire top command which will display which application is using how much memory. Vishal, thank you

Re: Cannot compile my Xtables module

2009-04-22 Thread Vishal Thanki
There should not be st_mtdtor in line 102, it should be xt_mtdtor (i think). Apart from there, I suggest you use proper typecast when you dereferenct void *. For example, in line 80, you should assign par-matchinfo to info with proper typecasting (of type struct xt_ipaddr_mtinfo *). Hope that

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Vishal Thanki
Fire top command which will display which application is using how much memory. Jeffrey Cao wrote: Hi there, On an embedded network device, while traffic passes on, I execute some command (my APP) to get some network statistic information, then oom-killer kicks in. From the message, several

Re: oom-killer kicks in, how to find which process eat up memory?

2009-04-21 Thread Vishal Thanki
Jeffrey Cao wrote: On 2009-04-21, Vishal Thanki vishaltha...@gmail.com wrote: Fire top command which will display which application is using how much memory. Vishal, thank you. But after oom-kill, the memory recovers to the normal state. All processes behave well. Thats because

memmap in bootargs

2009-04-02 Thread Vishal Thanki
Hello, Can anyone tell me what does memmap parameter means in boot arguments of kernel? I am working on an embedded device which is running linux, and it has the following parameter passed as boot argument : mem=128M memmap=...@128m I don't know what it means. Can anyone explain?? Thanks,

Re: memmap in bootargs

2009-04-02 Thread Vishal Thanki
Got it.. Thanks!!! Daniel Baluta wrote: On Thu, Apr 2, 2009 at 9:25 AM, Vishal Thanki vishaltha...@gmail.com wrote: Hello, Can anyone tell me what does memmap parameter means in boot arguments of kernel? I am working on an embedded device which is running linux, and it has the following

Re: can anyone tell me the differences between struct sock and struct socket that are data structures of network protocol stack ?

2009-03-30 Thread Vishal Thanki
I think "struct socket" is a socket which operates a transport layer. It allows the flexibility to add your own protocol stack (where you can defined your own protocol specific handlers  like bind, connect,  send, revc etc..). "struct sock" is operating at network layer. It holds all the

Re: device driver debugging

2009-03-30 Thread Vishal Thanki
Nidhi, You may want to try netconsole.. Complete documentation can be found at linux/Documentation/networking/netconsole.txt Vishal On Sat, Mar 28, 2009 at 1:38 AM, Rishi Bhushan Agrawal postri...@gmail.comwrote: Hi Nidhi, How do you reboot the system. I mean by command reboot, init and

Re: device driver debugging

2009-03-27 Thread Vishal Thanki
you can debug by commenting out the most of the code.. and then uncomment each block step by step to identify the exact place of crash.. coz when ur machine is crashing and its rebooting immediately, there's no way to see the crash unless u've got transferred ur console logs using serial

Re: Include path for module compilation

2009-03-10 Thread Vishal Thanki
its declared in linux/time/timekeeping.c ref : http://lxr.linux.no/linux+v2.6.28.7/kernel/time/timekeeping.c#L45 btw, have you tried by loading the module?? does it complain in loading it??? Harsha wrote: Hi all, After reading the The Linux Kernel Module Programming Guide, I have written a

Re: Include path for module compilation

2009-03-10 Thread Vishal Thanki
yea.. its defined as extern there.. and no, don't include .c file :) i believe that ur kernel is not built with timekeeping.o.. can you send me the output of cat /proc/kallsyms | grep xtime command ?? vishal Harsha wrote: On Mon, Mar 9, 2009 at 11:29 PM, Vishal Thanki vishaltha...@gmail.com

page address from user buffer

2009-03-05 Thread Vishal Thanki
Hello, I have implemented a write() call for my character driver. I need to get the page address of the __user buffer passed in write() call from user space. The idea is to get the actual physical address corresponding to user address and then do DMA operations using that physical address.