Re: kernel module seg fault

2005-08-23 Thread Sam Ravnborg
You do hide a lot of info. Without the Makefile we cannot see if you compile this in a decent way. We cannot see the implmentation of EnterFunction() etc. A quick grep in the kernel tree revealed very few users of DECLARE_WIATQUEUE_HEAD, and interruptible_sllep_on_timeout() are deprecated. So mayb

RE: kernel module seg fault

2005-08-23 Thread manomugdha biswas
Hi, This is the code where i am getting this problem. static byte4 VNICClientStart(unsigned long arg) { VNICClientCfgCreateInfo_t clientConfig; struct socket*sock = NULL; ubyte4 status = 0; ubyte4 retryCnt = VNIC_CLIENT_MAX_CONN_RETRY_CNT;

RE: kernel module seg fault

2005-08-23 Thread bunnans
Hi Biswas, You need to post the complete kernel dump message and body of your source code. -Bunnan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of manomugdha biswas Sent: Tuesday, August 23, 2005 3:13 PM To: linux-kernel@vger.kernel.org Subject: kernel

Re: kernel module seg fault

2005-08-23 Thread linux-os \(Dick Johnson\)
On Tue, 23 Aug 2005, manomugdha biswas wrote: > Hi, > I have written a kernel module and I can load (insmod) > it without any error. But when i run my module it gets > seg fault at interruptible_sleep_on_timeout(); > > I have used this function in the following way: > > DECLARE_WAIT_QUEUE_HEAD(wq