mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
The format of Netlink policy dump is a bit curious with messages in the same dump carrying both attrs and mapping info. Plus each message carries a single piece of the puzzle the caller must then reassemble. I need to do this reassembly for a test, but I think it's generally useful. So let's add proper support to YnlFamily to return more user-friendly representation. See the various docs in the patch for more details. Link: https://patch.msgid.link/20260310005337.3594225-5-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
17 lines
635 B
Python
17 lines
635 B
Python
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
|
|
|
|
""" YNL library """
|
|
|
|
from .nlspec import SpecAttr, SpecAttrSet, SpecEnumEntry, SpecEnumSet, \
|
|
SpecFamily, SpecOperation, SpecSubMessage, SpecSubMessageFormat, \
|
|
SpecException
|
|
from .ynl import YnlFamily, Netlink, NlError, NlPolicy, YnlException
|
|
|
|
from .doc_generator import YnlDocGenerator
|
|
|
|
__all__ = ["SpecAttr", "SpecAttrSet", "SpecEnumEntry", "SpecEnumSet",
|
|
"SpecFamily", "SpecOperation", "SpecSubMessage", "SpecSubMessageFormat",
|
|
"SpecException",
|
|
"YnlFamily", "Netlink", "NlError", "NlPolicy", "YnlException",
|
|
"YnlDocGenerator"]
|