Lines Matching +full:attribute +full:- +full:set
1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
37 self.ident_name = self.name.replace('-', '_')
119 value_start = self.yaml.get('value-start', 0)
150 """ Single Netlink attribute type
152 Represents a single attribute type within an attr space.
155 type string, attribute type
157 attr_set Attribute Set containing this attr
165 selector string, name of attribute used to select
166 sub-message type
168 is_auto_scalar bool, attr is a variable-size scalar
176 self.is_multi = yaml.get('multi-attr', False)
178 self.sub_type = yaml.get('sub-type')
179 self.byte_order = yaml.get('byte-order')
181 self.display_hint = yaml.get('display-hint')
182 self.sub_message = yaml.get('sub-message')
189 """ Netlink Attribute Set class.
194 via the dictionary interface Attribute Set exposes attributes by name.
199 subset_of parent set if this is a subset, otherwise None
204 self.subset_of = self.yaml.get('subset-of', None)
246 """Struct member attribute
248 Represents a single struct member attribute.
251 type string, type of the member attribute
262 self.byte_order = yaml.get('byte-order')
265 self.display_hint = yaml.get('display-hint')
295 """ Netlink sub-message definition
297 Represents a set of sub-message formats for polymorphic nlattrs
298 that contain type-specific sub messages.
301 name string, name of sub-message definition
302 formats dict of sub-message formats indexed by match value
317 """ Netlink sub-message format definition
319 Represents a single format for a sub-message.
322 value attribute value to match against type selector
324 attr_set string, name of attribute set, or None
330 self.fixed_header = yaml.get('fixed-header')
331 self.attr_set = yaml.get('attribute-set')
342 req_value numerical ID when serialized, user -> kernel
343 rsp_value numerical ID when serialized, user <- kernel
348 attr_set attribute set name
364 self.fixed_header = self.yaml.get('fixed-header', family.fixed_header)
373 if 'attribute-set' in self.yaml:
374 attr_set_name = self.yaml['attribute-set']
377 attr_set_name = msg['attribute-set']
381 raise Exception(f"Can't resolve attribute set for op '{self.name}'")
392 netlink-raw schema. Genetlink families use dynamic ID allocation
398 value integer id of this multicast group for netlink-raw or None
418 msg_id_model enum-model for operations (unified, directional etc.)
421 attr_sets dict of attribute sets
433 prefix = '# SPDX-License-Identifier: '
449 self.msg_id_model = self.yaml['operations'].get('enum-model', 'unified')
473 self.kernel_family = collections.OrderedDict(self.yaml.get('kernel-family', {}))
516 self.fixed_header = self.yaml['operations'].get('fixed-header')
528 self.fixed_header = self.yaml['operations'].get('fixed-header')
590 for elem in self.yaml['attribute-sets']:
594 for elem in self.yaml.get('sub-messages', []):
608 if not op.is_async and 'attribute-set' in op:
613 mcgs = self.yaml.get('mcast-groups')