Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 1 Oct 2002 13:56:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 1 Oct 2002 13:56:21 -0400 Received: from mail.cogenit.fr ([195.68.53.173]:64466 "EHLO cogenit.fr") by vger.kernel.org with ESMTP id ; Tue, 1 Oct 2002 13:56:21 -0400 Date: Tue, 1 Oct 2002 20:01:47 +0200 From: Francois Romieu To: linux-kernel@vger.kernel.org Subject: Re: Generic HDLC interface continued Message-ID: <20021001200147.A16700@fafner.intra.cogenit.fr> References: <20020928202138.A17244@se1.cogenit.fr> <20020930225437.A19967@se1.cogenit.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from khc@pm.waw.pl on Tue, Oct 01, 2002 at 01:48:23AM +0200 X-Organisation: Marie's fan club - III Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 891 Lines: 24 Krzysztof Halasa : [...] > Please note that there is no call which could return the protocol > (or interface type) without copying the whole data - thus the caller > (utility) is unable to skip unknown interfaces. Ok, the 'type' attribute isn't enough. I feel like we are trying to do two things at the same time: a) the size of the allocated area isn't required if we need to do something real with the data: if size doesn't match what is expected, we loose anyway b) if we don't care about the copied data, we actually ask for the subtype of the interface -> a) and b) are two different operations imho. -- Ueimor - 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/