Newsgroups: fa.linux.kernel
From: Magnus Damm <d...@opensource.se>
Date: Sun, 20 Mar 2005 23:11:07 GMT
Local: Sun, Mar 20 2005 6:11 pm
Subject: [PATCH 0/5] autoparam
Here are a set of patches that makes it possible to autogenerate kernel command
line documentation from the source code. The approach is rather straightforward - the parameter name, the type and the description are stored in a section called __param_strings. After vmlinux is built this section is extracted using objcopy and a script is used to generate a primitive - but up to date - document. Right now the section is left in the kernel binary. The document is currently $ objcopy -j __param_strings vmlinux -O binary foo And yeah, you need to install ruby to run the script. The ruby script section2text.rb does some checks to see if MODULE_PARM_DESC() Future work that extends this idea could include replacing __setup(name) with / magnus - You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||