Re: [PATCH net-next v2 2/6] tools: ynl: Add struct parsing to nlspec
From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-03-22 05:24:09
From: Jakub Kicinski <kuba@kernel.org>
Date: 2023-03-22 05:24:09
On Sun, 19 Mar 2023 19:37:59 +0000 Donald Hunter wrote:
+class SpecStructMember(SpecElement): + """Struct member attribute + + Represents a single struct member attribute. + + Attributes: + type string, kernel type of the member attribute
We can have structs inside structs in theory, or "binary blobs" so this is really a subset of what attr can be rather than necessarily a kernel type?
+ """ + def __init__(self, family, yaml): + super().__init__(family, yaml) + self.type = yaml['type'] +
nit: double new line
+class SpecStruct(SpecElement): + """Netlink struct type