summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2025-08-19 11:52:10 -0400
committerSasha Levin <sashal@kernel.org>2026-10-07 18:26:44 -0400
commit6d009bd85fa4e6dbad869e1cb707404968f3f20d (patch)
treef764bac49d89c2553cda715c7f02dd58776478de /tools/lib/python/kdoc/python_version.py
parentce4c52682d78fc08c9b1e2217aae6f00fa02bab3 (diff)
downloadlinux-next-6d009bd85fa4e6dbad869e1cb707404968f3f20d.tar.gz
linux-next-6d009bd85fa4e6dbad869e1cb707404968f3f20d.zip
kernel/api: enable kerneldoc-based API specifications
Add support for extracting API specifications from kernel-doc comments and generating C macro invocations for the kernel API specification framework. Changes include: - New kdoc_apispec.py module for generating API spec macros - Updates to tools/docs/kernel-doc to support the -apispec output format - Build system integration in Makefile.build - Support for API-specific sections in kernel-doc comments kernel-doc recognises the KAPI sections only in -apispec mode, so its other output formats are unchanged. With CONFIG_KAPI_SPEC=y, Kbuild generates <file>.apispec.h for each built source that has a contexts: or context-flags: line plus another KAPI section, and force-includes it when compiling that source. Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions