Re: 'No such device or address' when writing to device driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, Jan 12, 2010 at 5:46 PM, Sam Carter <sam.w.carter@xxxxxxxxx> wrote:
> Hi Srdjan and everyone.
>
> Thanks for pointing that out, I have updated my function.
>
> ssize_t memo_write(struct file *filp, const char __user *buf, size_t count,
> loff_t *offp){
>     printk("write function\n");
>     ssize_t temp = -ENOMEM;
>     return temp;
> }
>
> However with a clean build reboot and insmod, I am having the same error.
> I'm sure I must be missing something obvious. What could be causing this?

I'm pretty sure that your /dev/XXX device is not properly _connected_
with your file operations struct.
So please, recheck:
         * /dev/XXX has proper access rights and major, minor match
the ones in your driver.
         * character device handing operations.

thanks,
Daniel.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux