Re: writing to driver failed

2010-09-27 Thread Alison Chaiken
On Fri, Sep 24, 2010 at 6:38 AM, sri wrote: > static int eater_write(struct file *file, const char *buf, size_t lbuf, > loff_t *ppos) >     actual_data_allowed_to_write = MAXSIZE - *ppos; >     if(actual_data_allowed_to_write == 0) Perhaps <= 0 is what you should check here, just in ca

Re: writing to driver failed

2010-09-27 Thread sri
Thanks. It worked. On Sat, Sep 25, 2010 at 12:46 AM, John Mahoney wrote: > On Fri, Sep 24, 2010 at 9:38 AM, sri wrote: > > My driver write routine is not working properly. > > As a result, when I do echo "123" > /dev/eater, the process is stopping > and > > the control goes into an infinite loo

Re: writing to driver failed

2010-09-24 Thread John Mahoney
On Fri, Sep 24, 2010 at 9:38 AM, sri wrote: > My driver write routine is not working properly. > As a result, when I do echo "123" > /dev/eater, the process is stopping and > the control goes into an infinite loop. > lsmod showed my driver was in use by 2 processes. > Now if i want to forcefully r

Re: writing to driver failed

2010-09-24 Thread John Mahoney
On Fri, Sep 24, 2010 at 9:38 AM, sri wrote: > My driver write routine is not working properly. > As a result, when I do echo "123" > /dev/eater, the process is stopping and > the control goes into an infinite loop. > lsmod showed my driver was in use by 2 processes. > Now if i want to forcefully r

writing to driver failed

2010-09-24 Thread sri
My driver write routine is not working properly. As a result, when I do echo "123" > /dev/eater, the process is stopping and the control goes into an infinite loop. lsmod showed my driver was in use by 2 processes. Now if i want to forcefully remove my driver module from kernel, how to do that? Be