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
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
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
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
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