Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 23 Jul 2002 05:50:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 23 Jul 2002 05:50:49 -0400 Received: from [202.145.83.35] ([202.145.83.35]:32271 "EHLO ite.techarea.org") by vger.kernel.org with ESMTP id ; Tue, 23 Jul 2002 05:50:48 -0400 Date: Tue, 23 Jul 2002 17:53:46 +0800 From: Richard Liu To: Linux Kernel Mail List Subject: How to use ioctl write data to ide device? Message-Id: <20020723174653.4B46.RICHLIU@ite.techarea.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.00.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 646 Lines: 20 Hi all: I have a ide device which need use special command to configure it. I want to write a user space program to control it. so I try to use ioctl send my command, but after I send IDE command I must send 512byte to device. does anyone know how to write data from user space? and I have another question, what is "hwif->drives[0].unmask = 1;", how to use it correctly? -- Richard Liu - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/