Lines Matching +full:kernel +full:- +full:family
1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
26 family back reference to the full family
31 def __init__(self, family, yaml): argument
33 self.family = family
37 self.ident_name = self.name.replace('-', '_')
40 family.add_unresolved(self)
75 super().__init__(enum_set.family, yaml)
113 def __init__(self, family, yaml): argument
114 super().__init__(family, yaml)
119 value_start = self.yaml.get('value-start', 0)
163 sub-message type
165 is_auto_scalar bool, attr is a variable-size scalar
167 def __init__(self, family, attr_set, yaml, value): argument
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')
198 def __init__(self, family, yaml): argument
199 super().__init__(family, yaml)
201 self.subset_of = self.yaml.get('subset-of', None)
217 real_set = family.attr_sets[self.subset_of]
224 return SpecAttr(self.family, self, elem, value)
253 def __init__(self, family, yaml): argument
254 super().__init__(family, yaml)
256 self.byte_order = yaml.get('byte-order')
259 self.display_hint = yaml.get('display-hint')
271 def __init__(self, family, yaml): argument
272 super().__init__(family, yaml)
276 self.members.append(self.new_member(family, member))
278 def new_member(self, family, elem): argument
279 return SpecStructMember(family, elem)
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
298 def __init__(self, family, yaml): argument
299 super().__init__(family, yaml)
303 format = self.new_format(family, elem)
306 def new_format(self, family, format): argument
307 return SpecSubMessageFormat(family, format)
311 """ Netlink sub-message format definition
313 Represents a single format for a sub-message.
320 def __init__(self, family, yaml): argument
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
347 def __init__(self, family, yaml, req_value, rsp_value): argument
348 super().__init__(family, yaml)
358 self.fixed_header = self.yaml.get('fixed-header', family.fixed_header)
367 if 'attribute-set' in self.yaml:
368 attr_set_name = self.yaml['attribute-set']
370 msg = self.family.msgs[self.yaml['notify']]
371 attr_set_name = msg['attribute-set']
377 self.attr_set = self.family.attr_sets[attr_set_name]
386 netlink-raw schema. Genetlink families use dynamic ID allocation
392 value integer id of this multicast group for netlink-raw or None
395 def __init__(self, family, yaml): argument
396 super().__init__(family, yaml)
401 """ Netlink Family Spec class.
403 Netlink family information loaded from a spec (e.g. in YAML).
412 msg_id_model enum-model for operations (unified, directional etc.)
421 fixed_header string, optional name of family default fixed header struct
423 kernel_family dict of kernel family attributes
427 prefix = '# SPDX-License-Identifier: '
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')
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')