From mboxrd@z Thu Jan 1 00:00:00 1970 From: bjorn@mork.no (=?utf-8?Q?Bj=C3=B8rn_Mork?=) Date: Tue, 27 May 2014 15:05:57 +0200 Subject: Simple Misc Driver - Problem with string copy to user In-Reply-To: (Lucas Tanure's message of "Tue, 27 May 2014 10:03:47 -0300") References: <87ppizgywj.fsf@nemi.mork.no> Message-ID: <87lhtngymi.fsf@nemi.mork.no> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Lucas Tanure 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