Home
last modified time | relevance | path

Searched refs:attr_spec (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/tools/net/ynl/lib/
Dynl.py475 def _decode_enum(self, raw, attr_spec): argument
476 enum = self.consts[attr_spec['enum']]
477 if 'enum-as-flags' in attr_spec and attr_spec['enum-as-flags']:
489 def _decode_binary(self, attr, attr_spec): argument
490 if attr_spec.struct_name:
491 members = self.consts[attr_spec.struct_name]
496 elif attr_spec.sub_type:
497 decoded = attr.as_c_array(attr_spec.sub_type)
500 if attr_spec.display_hint:
501 decoded = NlAttr.formatted_string(decoded, attr_spec.display_hint)
[all …]