Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755307Ab1DZMzM (ORCPT ); Tue, 26 Apr 2011 08:55:12 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:50945 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755232Ab1DZMzI (ORCPT ); Tue, 26 Apr 2011 08:55:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=IQ0iP+thZYaXYdmn46Sn8MoFTJ3qe8X14eYS8os0Ub/ODRd3nw0p1FqIkZoDneiAnP OzPHvyuLFlkMoV5hmvHpM3IPRAx6lR/L0blNKBjC6sAfbnjogjhshHNBmXUSeqIzXsDR ufAloxvB7s7395X2yQKCzlE2STaXsKVRHuFbs= MIME-Version: 1.0 In-Reply-To: <201104261437.53925.arnd@arndb.de> References: <201104261437.53925.arnd@arndb.de> Date: Tue, 26 Apr 2011 15:55:07 +0300 Message-ID: Subject: Re: Why is the 'loff_t *offset' parameter in the file_operations' read function a pointer? From: Amit Ben Shahar To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 430 Lines: 10 > The read function must update the offset independent of the return value. > See simple_read_from_buffer() as an example. Thank you - that helped greatly and solved my problem. Amit. -- 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/