Lines Matching +full:super +full:- +full:set
1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
37 self.ident_name = self.name.replace('-', '_')
75 super().__init__(enum_set.family, yaml)
114 super().__init__(family, yaml)
119 value_start = self.yaml.get('value-start', 0)
154 attr_set Attribute Set containing this attr
163 sub-message type
165 is_auto_scalar bool, attr is a variable-size scalar
168 super().__init__(family, yaml)
173 self.is_multi = yaml.get('multi-attr', False)
175 self.sub_type = yaml.get('sub-type')
176 self.byte_order = yaml.get('byte-order')
178 self.display_hint = yaml.get('display-hint')
179 self.sub_message = yaml.get('sub-message')
186 """ Netlink Attribute Set class.
191 via the dictionary interface Attribute Set exposes attributes by name.
196 subset_of parent set if this is a subset, otherwise None
199 super().__init__(family, yaml)
201 self.subset_of = self.yaml.get('subset-of', None)
254 super().__init__(family, yaml)
256 self.byte_order = yaml.get('byte-order')
259 self.display_hint = yaml.get('display-hint')
272 super().__init__(family, yaml)
289 """ Netlink sub-message definition
291 Represents a set of sub-message formats for polymorphic nlattrs
292 that contain type-specific sub messages.
295 name string, name of sub-message definition
296 formats dict of sub-message formats indexed by match value
299 super().__init__(family, yaml)
311 """ Netlink sub-message format definition
313 Represents a single format for a sub-message.
318 attr_set string, name of attribute set, or None
321 super().__init__(family, yaml)
324 self.fixed_header = yaml.get('fixed-header')
325 self.attr_set = yaml.get('attribute-set')
336 req_value numerical ID when serialized, user -> kernel
337 rsp_value numerical ID when serialized, user <- kernel
342 attr_set attribute set name
348 super().__init__(family, yaml)
358 self.fixed_header = self.yaml.get('fixed-header', family.fixed_header)
365 self.resolve_up(super())
367 if 'attribute-set' in self.yaml:
368 attr_set_name = self.yaml['attribute-set']
371 attr_set_name = msg['attribute-set']
375 raise Exception(f"Can't resolve attribute set for op '{self.name}'")
386 netlink-raw schema. Genetlink families use dynamic ID allocation
392 value integer id of this multicast group for netlink-raw or None
396 super().__init__(family, yaml)
412 msg_id_model enum-model for operations (unified, directional etc.)
427 prefix = '# SPDX-License-Identifier: '
438 super().__init__(self, spec)
443 self.msg_id_model = self.yaml['operations'].get('enum-model', 'unified')
467 self.kernel_family = collections.OrderedDict(self.yaml.get('kernel-family', {}))
510 self.fixed_header = self.yaml['operations'].get('fixed-header')
522 self.fixed_header = self.yaml['operations'].get('fixed-header')
573 self.resolve_up(super())
584 for elem in self.yaml['attribute-sets']:
588 for elem in self.yaml.get('sub-messages', []):
602 if not op.is_async and 'attribute-set' in op:
607 mcgs = self.yaml.get('mcast-groups')