Re: Simple Misc Driver - Problem with string copy to user

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

 



Wow, many thanks. 
So the read operation should return the total number of bytes, not a true/false int. 

I need to read more about this operations. 

Thanks

--
Lucas Tanure 
+55 (19) 988176559


On Tue, May 27, 2014 at 10:05 AM, Bjørn Mork <bjorn@xxxxxxx> wrote:
Lucas Tanure <tanure@xxxxxxxxx> writes:

> So, My misc_drv_read returns 0, and it's ok. So why the command head didn't
> get the string ?

You told it that it got a string with length 0.  And that's what it printed.


Bjørn

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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