From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16050 invoked from network); 10 Nov 1999 15:07:04 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 10 Nov 1999 15:07:04 -0000 Received: from mailext04.compaq.com (mailext04.compaq.com [207.18.199.42]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA24315 for ; Wed, 10 Nov 1999 10:07:03 -0500 Received: from mailint12.im.hou.compaq.com (mailint12.compaq.com [207.18.199.190]) by mailext04.compaq.com (Postfix) with ESMTP id F1072104D70 for ; Wed, 10 Nov 1999 09:07:02 -0600 (CST) Received: by mailint12.im.hou.compaq.com (Postfix, from userid 12345) id 14AC84FB09; Wed, 10 Nov 1999 09:06:43 -0600 (CST) Received: from excreo-gh01.reo.dec.com (unknown [16.41.128.40]) by mailint12.im.hou.compaq.com (Postfix) with ESMTP id 9AF384C901 for ; Wed, 10 Nov 1999 09:06:42 -0600 (CST) Received: by EXCREO-GH01 with Internet Mail Service (5.5.2559.0) id ; Wed, 10 Nov 1999 15:07:00 -0000 Message-ID: <03D1E91FFFDFD1119BD90000F843B47502C308CB@sbueurayo1bc.ayo.dec.com> From: "Grant, Iain" To: Redhat Linux AXP Subject: Simple Device Driver Date: Wed, 10 Nov 1999 15:06:51 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2559.0) Content-Type: text/plain; charset="iso-8859-1" Ok Folks, I'm trying to write a simple device driver, at the moment I've got 'Linux Device Drivers' boot from O'reilly and the 'Linux Kernel Module Programming Guide' from Ori Pomerants. I'm trying to modify Ori's character driver code to accept writes as well as reads to a device. I can get the original program to read without any problem and added code to the write code section, the problem I have is that the reads work but the write code does not seem to be executed. It should be fairly simple, maybe I am missing something. Anyone got any ideas ?? I've attached the device driver and the test program, I don't know if the maillist will send it or not ? <<...OLE Obj...>> <<...OLE Obj...>> Thanks Iain Grant Software Engineer Embedded Systems Division SMART Modular Technologies Ayr, Scotland "I think, therefore I get a headache"