From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arjan van de Ven Subject: RE: How to add/drop SCSI drives from within the driver? Date: Thu, 09 Dec 2004 09:12:45 -0500 Message-ID: <1102601563.2784.20.camel@laptop.fenrus.org> References: <60807403EABEB443939A5A7AA8A7458B7F5278@otce2k01.adaptec.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([66.187.233.31]:11173 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S261359AbULIOOU (ORCPT ); Thu, 9 Dec 2004 09:14:20 -0500 In-Reply-To: <60807403EABEB443939A5A7AA8A7458B7F5278@otce2k01.adaptec.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Salyzyn, Mark" Cc: Bryan Henderson , "Mukker, Atul" , Andrew Morton , brking@us.ibm.com, bunk@fs.tum.de, "Doelfel, Hardy" , James Bottomley , linux-scsi@vger.kernel.org, Matthew Wilcox , Matt Domsch , "Ju, Seokmann" , "Bagalkote, Sreenivas" On Thu, 2004-12-09 at 08:27 -0500, Salyzyn, Mark wrote: > Bryan Henderson writes: > >>can only be good because the applications and > >>driver could be compiled on different archs. > > > >I'm having a hard time imagining where the application and the kernel > >could reasonably have been compiled for different architectures. > They're > >running on the same machine, aren't they? > > We have management applications that run remote. But we still > standardize on byte ordering as well. the packed in a userspace visible struct is a mistake. Packing for a hw struct is basically ok-ish, but please don't expose the hw struct to userspace, instead give userspace a sane, type safe and 32/64 bit translation safe interface and convert internally. Pretty please?