From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id 599931EF6B4; Fri, 19 Jul 2013 02:07:18 -0400 (EDT) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by befuddled.reisers.ca (Postfix) with ESMTPS id 5C7391EF56E for ; Fri, 19 Jul 2013 02:07:14 -0400 (EDT) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6J67BMK002712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Jul 2013 06:07:12 GMT Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6J67AfZ011540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 19 Jul 2013 06:07:11 GMT Received: from abhmt118.oracle.com (abhmt118.oracle.com [141.146.116.70]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6J67Aci026340 for ; Fri, 19 Jul 2013 06:07:10 GMT MIME-Version: 1.0 Message-ID: <0da38b23-f8a4-42ba-8f26-94b1e69a549a@default> Date: Thu, 18 Jul 2013 23:07:09 -0700 (PDT) From: Don Raikes Sender: Don Raikes To: "Speakup is a screen review system for Linux." Subject: RE: OT: kernel oops References: <0d30e6e5-261e-47e0-b5da-2ce5fe6bad24@default> <87mwpjx3ae.fsf@mushroom.PK5001Z> <20130718234302.GA7934@jdc.jasonjgw.net> <481c693b-a8bb-4700-baca-6e4a44fc23d6@default> <20130719013418.GA8869@jdc.jasonjgw.net> <8d1e7965-5bfe-4739-97a9-f483a615ca23@default> <20130719055130.GA13329@jdc.jasonjgw.net> In-Reply-To: <20130719055130.GA13329@jdc.jasonjgw.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: acsinet21.oracle.com [141.146.126.237] 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 06:07:18 -0000 I agree that a good knowledge of c is a prerequisite for this kind of progr= amming, but this is my first semester in theis masters program, and they th= rew us into the deep end pretty quickly. I had a c class about 8 years ago and have forgotten a lot of it. I am also taking a c++ class this summer, but it isn't getting into any of = this stuff yet. -----Original Message----- From: Jason White [mailto:jason@jasonjgw.net]=20 Sent: Thursday, July 18, 2013 10:51 PM To: speakup@linux-speakup.org Subject: Re: OT: kernel oops Don Raikes wrote: > Ok so I get it, but the problem is that I am hooking into the sys_write s= ystemcall, and it is by default cast to a const. >=20 > If I leave it as is, and cast the buf in my copy_to_user to a (char*) sho= uld that work? >=20 Try (void __user *) which according to Linux Device Drivers is the correct type for copy_to_use= r. > Sorry my knowledge of c is very limited :) I would suggest reading a good book on the subject in that case. A good knowledge of C is a prerequisite for what you are doing. _______________________________________________ Speakup mailing list Speakup@linux-speakup.org http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup