Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 2 Oct 2002 01:51:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 2 Oct 2002 01:51:36 -0400 Received: from hq.pm.waw.pl ([195.116.170.10]:33497 "EHLO hq.pm.waw.pl") by vger.kernel.org with ESMTP id ; Wed, 2 Oct 2002 01:51:35 -0400 To: Subject: Re: Generic HDLC interface continued References: <20020928202138.A17244@se1.cogenit.fr> <20020930225437.A19967@se1.cogenit.fr> <20021001200147.A16700@fafner.intra.cogenit.fr> From: Krzysztof Halasa Date: 02 Oct 2002 00:09:33 +0200 In-Reply-To: <20021001200147.A16700@fafner.intra.cogenit.fr> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1050 Lines: 21 Francois Romieu writes: > 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. Depends on the point of view, but generally it might be true. However, it is quite practical to do a+b in one call: - utilities will always do it in exactly that order, - we don't need to worry about races (process A gets type/size; process B changes protocol; process A gets invalid data). -- Krzysztof Halasa Network Administrator - 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/