aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-04-21 18:02:51 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-05-02 19:48:26 +0900
commit7284b4fbc8473965f9c053f3fa8b194af8ed4738 (patch)
tree14827e7f55a227ba728556bb6069bd8465f1d19c /scripts/gdb/linux/modules.py
parent377d9095117c084b835e38c020faf5a78e386f01 (diff)
kconfig: add menu_next() function and menu_for_each(_sub)_entry macros
Several functions require traversing menu entries sequentially. This commit introduces some helpers to simplify such operations. The menu_next() function facilitates depth-first traversal: 1. Descend to the child level if the current menu has one 2. Move to the next sibling at the same level if available 3. Ascend to the parent level if there is no more child or sibling The menu_for_each_sub_entry() macro iterates over all submenu entries using depth-first traverse. The menu_for_each_entry() macro is the same, but over all menu entries. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions