GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.kernel.org — Including uAPI header files — The Linux Kernel documentation
English
Including uAPI header files¶Sometimes, it is useful to include header files and C example codes in
order to describe the userspace API and to generate cross-references
between the code and the documentation. Adding cross-references for
userspace API files has an additional advantage: Sphinx will generate warnings
if a symbol is not found at the documentation. That helps to keep the
uAPI documentation in sync with the Kernel changes.
The parse-headers.py provides a way to generate such
cross-references. During the documentation build, the same parser is used by
the tools/docs/parse-headers.py¶NAME¶parse-headers.py - parse a C file, in order to identify functions, structs, enums and defines and create cross-references to a Sphinx book. USAGE¶parse-headers.py [-h] [-d] [-t] SYNOPSIS¶Converts a C header or source file The output is written at It is capable of identifying It is also capable of distinguishing The optional ignore ioctl VIDIOC_ENUM_FMT replace ioctl VIDIOC_DQBUF vidioc_qbuf replace define V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ :c:type:`v4l2_event_motion_det` POSITIONAL ARGUMENTS¶
OPTIONS¶
DESCRIPTION¶Creates an enriched version of a Kernel header file with cross-links
to each C data structure type, from It accepts an optional It is meant to allow having more comprehensive documentation, where uAPI headers will create cross-reference links to the code. The output is written at the The By default, it create rules for all symbols and defines, but it also allows parsing an exception file. Such file contains a set of rules using the syntax below:
Removes the symbol from reference generation.
On ignore and replace rules, type can be:
EXAMPLES¶
BUGS¶Report bugs to Mauro Carvalho Chehab <mchehab@kernel.org> COPYRIGHT¶Copyright (c) 2016, 2025 by Mauro Carvalho Chehab <mchehab+huawei@kernel.org>. License GPLv2: GNU GPL version 2 <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |