Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 29 Aug 2002 08:10:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 29 Aug 2002 08:10:40 -0400 Received: from smtp02.uc3m.es ([163.117.136.122]:14342 "HELO smtp.uc3m.es") by vger.kernel.org with SMTP id ; Thu, 29 Aug 2002 08:10:39 -0400 From: "Peter T. Breuer" Message-Id: <200208291214.g7TCEtZ10901@oboe.it.uc3m.es> Subject: Re: O_DIRECT In-Reply-To: <200208291113.g7TBDut26852@tench.street-vision.com> from "kernel@street-vision.com" at "Aug 29, 2002 11:13:56 am" To: kernel@street-vision.com Date: Thu, 29 Aug 2002 14:14:55 +0200 (MET DST) Cc: linux kernel X-Anonymously-To: Reply-To: ptb@it.uc3m.es X-Mailer: ELM [version 2.4ME+ PL66 (25)] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 827 Lines: 20 "A month of sundays ago kernel@street-vision.com wrote:" > > > > What functions does a block driver have to implement in order to > > support read/write when it has been opened with O_DIRECT from user > > space. > Remeber that the memory you read/write from must be page aligned (ie > mmap /dev/zero not malloc) and reads and writes must be multiples of the > page size. I think block devices work on 2.4 too, but I forget (otherwise > you can use raw devices). I do believe you are right. Multiples of 4096 seem to work fine. No support needed in the block device driver. Peter - 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/