Simple Misc Driver - Problem with string copy to user

Bjørn Mork bjorn at mork.no
Tue May 27 09:05:57 EDT 2014


Lucas Tanure <tanure at linux.com> 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



More information about the Kernelnewbies mailing list