From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id 300111EF6AF; Fri, 19 Jul 2013 19:44:53 -0400 (EDT) Received: from jdc.jasonjgw.net (jdc.jasonjgw.net [IPv6:2001:44b8:412f:6e00::2]) by befuddled.reisers.ca (Postfix) with ESMTPS id 2E58F1EF08B for ; Fri, 19 Jul 2013 19:44:52 -0400 (EDT) Received: by jdc.jasonjgw.net (Postfix, from userid 1000) id 701311808B506; Sat, 20 Jul 2013 09:44:38 +1000 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jasonjgw.net; s=mail; t=1374277478; bh=JB1UWRu5RubSIwC1/OyvS/RNuS0cJgnWwkRRPiYkM3g=; h=Date:From:To:Subject:References:In-Reply-To; b=D1kHvO+Nv6WJu9N/m2tJUTcuAkrBEM7PffuIjp0Po3+Obnk9Bs32uVcRtHs0sefIc 0itJHMpJMDjwscThbKfJBEyKZ37WACIyqZatCwvoExueUbBCsfFex0ZwsvUFIfmNEg AuPoL2aW860H6L+p/SIMzMNwxlMWsa77tXYmYLTc= Date: Sat, 20 Jul 2013 09:44:38 +1000 From: Jason White To: speakup@linux-speakup.org Subject: Re: ot memory allocation question Message-ID: <20130719234438.GA7877@jdc.jasonjgw.net> References: <41356f9b-e7c3-4522-b960-142abea1cedd@default> <87fvvawwrj.fsf@mushroom.PK5001Z> <444275b3-63df-4577-835c-04ebc2830eb3@default> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <444275b3-63df-4577-835c-04ebc2830eb3@default> User-Agent: Mutt/1.5.21 (2010-09-15) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.2 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jul 2013 23:44:53 -0000 Don Raikes wrote: > Chris, > > I gave that code segmentthat I sent a try, and it gives me an error in the copy_to_user call. It looks like none of the bytes were copied to the userspace buffer. > I also get incompatible pointer types in the call to sys_write You said earlier this was for some kind of course; surely you should be asking your lecturer or tutor in the course for help with it, as they're in the best position to offer advice in the context of the project they've asked you to complete. At this point I really can't help any further, as I don't have a background in kernel development.