summaryrefslogtreecommitdiff
path: root/tools/kapi/src/extractor/vmlinux/binary_utils.rs
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2025-06-24 14:07:35 -0400
committerSasha Levin <sashal@kernel.org>2026-10-07 18:26:44 -0400
commit89224dc705016dd40cce6c924148e31f0a0dbbb0 (patch)
treef14a9d5deaaa041deefa659e7cbde470f5779e1f /tools/kapi/src/extractor/vmlinux/binary_utils.rs
parent6d009bd85fa4e6dbad869e1cb707404968f3f20d (diff)
downloadlinux-next-89224dc705016dd40cce6c924148e31f0a0dbbb0.tar.gz
linux-next-89224dc705016dd40cce6c924148e31f0a0dbbb0.zip
kernel/api: add debugfs interface for kernel API specifications
Add a debugfs interface, enabled by CONFIG_KAPI_SPEC_DEBUGFS, to expose kernel API specifications at runtime. This allows tools and users to query the complete API specifications through the debugfs filesystem. The interface provides: - /sys/kernel/debug/kapi/list - lists all available API specifications - /sys/kernel/debug/kapi/specs/<name> - detailed info for each API - /sys/kernel/debug/kapi/specs-json/<name> - the same spec as JSON Each specification file includes: - Function name, version, and descriptions - Execution context requirements and flags - Parameter details with types, flags, and constraints - Return value specifications and success conditions - Error codes with descriptions and conditions - Locking requirements and constraints - Signal handling specifications - Examples and notes This enables runtime introspection of kernel APIs for documentation tools, static analyzers, and debugging purposes. Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/kapi/src/extractor/vmlinux/binary_utils.rs')
0 files changed, 0 insertions, 0 deletions