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)
149 Represents a single attribute type within an attr space.
152 type string, attribute type
154 attr_set Attribute Set containing this attr
162 selector string, name of attribute used to select
163 sub-message type
165 is_auto_scalar bool, attr is a variable-size scalar
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
201 self.subset_of = self.yaml.get('subset-of', None)
240 """Struct member attribute
242 Represents a single struct member attribute.
245 type string, type of the member attribute
255 self.byte_order = yaml.get('byte-order')
258 self.display_hint = yaml.get('display-hint')
287 """ Netlink sub-message definition
289 Represents a set of sub-message formats for polymorphic nlattrs
290 that contain type-specific sub messages.
293 name string, name of sub-message definition
294 formats dict of sub-message formats indexed by match value
309 """ Netlink sub-message definition
311 Represents a set of sub-message formats for polymorphic nlattrs
312 that contain type-specific sub messages.
315 value attribute value to match against type selector
317 attr_set string, name of attribute set, or None
323 self.fixed_header = yaml.get('fixed-header')
324 self.attr_set = yaml.get('attribute-set')
335 req_value numerical ID when serialized, user -> kernel
336 rsp_value numerical ID when serialized, user <- kernel
340 attr_set attribute set name
355 self.fixed_header = self.yaml.get('fixed-header', family.fixed_header)
364 if 'attribute-set' in self.yaml:
365 attr_set_name = self.yaml['attribute-set']
368 attr_set_name = msg['attribute-set']
372 raise Exception(f"Can't resolve attribute set for op '{self.name}'")
383 netlink-raw schema. Genetlink families use dynamic ID allocation
389 value integer id of this multicast group for netlink-raw or None
409 msg_id_model enum-model for operations (unified, directional etc.)
412 attr_sets dict of attribute sets
423 prefix = '# SPDX-License-Identifier: '
439 self.msg_id_model = self.yaml['operations'].get('enum-model', 'unified')
505 self.fixed_header = self.yaml['operations'].get('fixed-header')
517 self.fixed_header = self.yaml['operations'].get('fixed-header')
579 for elem in self.yaml['attribute-sets']:
583 for elem in self.yaml.get('sub-messages', []):
597 if not op.is_async and 'attribute-set' in op:
602 mcgs = self.yaml.get('mcast-groups')