From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763605AbZEOSEz (ORCPT ); Fri, 15 May 2009 14:04:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755349AbZEOSEn (ORCPT ); Fri, 15 May 2009 14:04:43 -0400 Received: from exprod7og106.obsmtp.com ([64.18.2.165]:44962 "EHLO exprod7og106.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754669AbZEOSEm convert rfc822-to-8bit (ORCPT ); Fri, 15 May 2009 14:04:42 -0400 From: "Mukker, Atul" To: Matthew Wilcox CC: Jeff Garzik , Julian Calaby , adam radford , "linux-kernel@vger.kernel.org" , "Austria, Winston" , "linux-scsi@vger.kernel.org" Date: Fri, 15 May 2009 12:03:39 -0600 Subject: RE: [RFQ] New driver architecture questions Thread-Topic: [RFQ] New driver architecture questions Thread-Index: AcnVe2CU8WjNA+mWQIWG7MmmrcFU5QAC4U0g Message-ID: <6C678488C5CEE74F813A4D1948FD2DC7A96C7848@cosmail02.lsi.com> References: <6C678488C5CEE74F813A4D1948FD2DC7A95E6D37@cosmail02.lsi.com> <4A0B858F.3080405@garzik.org> <6C678488C5CEE74F813A4D1948FD2DC7A95E6D38@cosmail02.lsi.com> <4A0B9B0D.6080006@garzik.org> <646765f40905141801k5ae6249p925a4a377652c62e@mail.gmail.com> <4A0CDB27.6090009@garzik.org> <6C678488C5CEE74F813A4D1948FD2DC7A96C7789@cosmail02.lsi.com> <20090515163626.GA15360@parisc-linux.org> In-Reply-To: <20090515163626.GA15360@parisc-linux.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Matthew Wilcox [mailto:matthew@wil.cx] > Sent: Friday, May 15, 2009 12:36 PM > To: Mukker, Atul > Cc: Jeff Garzik; Julian Calaby; adam radford; linux- > kernel@vger.kernel.org; Austria, Winston; linux-scsi@vger.kernel.org > Subject: Re: [RFQ] New driver architecture questions > > On Fri, May 15, 2009 at 08:56:25AM -0600, Mukker, Atul wrote: > > [Atul] I think we are close, for example, memcpy API in the stack is > osi_memcpy(), which translates to memcpy() on Linux and > ScsiPortMoveMemory() on windows. > > The solution to "We have some people who speak French and other people who > speak German" is not to invent Esperanto ;-) [Atul] We really wish they could communicate in English :-), since that's not an option, we agree in principle that using native Linux Kernel APIs wherever possible is probably a good idea. > > Using one or the other internally is fine (we don't care what you do), > but we want to see memcpy(). By the way, the documentation I found for > ScsiPortMoveMemory() seems to indicate that it's memmove(), not memcpy(). > Mapping memcpy() to ScsiPortMoveMemory() is fine ... but you can't > realiably go the other way. [Atul] It's actually memcpy(),http://msdn.microsoft.com/en-us/library/ms805434.aspx