Re: Generic HDLC interface continued

From: Krzysztof Halasa (khc@pm.waw.pl)
Date: Tue Oct 01 2002 - 17:09:33 EST


Francois Romieu <romieu@cogenit.fr> 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/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:32 EST