Copyright (C) 2000-2012 |
Manpages GENKSYMSSection: Linux Module Support (8)Updated: January 30, 2002 Index Return to Main Contents NAMEgenksyms - generate symbol version informationSYNOPSISgenksyms [-wq] [-dD] [-V] [-k version] [-p string] [output directory]DESCRIPTIONGenksyms reads (on standard input) the output from "gcc -E source.c" and generates a file containing version information.Depending on the output format indicated by the -k option, the output will either be written to a .ver file in the named output directory, or to the standard output. Genksyms normally looks for explicit symbol table definitions in the source file. All definitions and declarations of typedef, struct, union and enum will be saved for later expansion. Every global symbol will also be saved, together with pointers that will enable a full expansion later on. When a symbol table is found in the source, the symbol will be expanded to its full definition, where all structs, unions, enums and typedefs will be expanded down to their basic part, recursively. This final string will then be used as input to a CRC algorithm that will give an integer that will change as soon as any of the included definitions changes, for this symbol. The version information in the kernel normally looks like: symbol_R12345678, where 12345678 is the hexadecimal representation of the CRC. OPTIONS
SEE ALSOinsmod(8), modprobe(8)BUGSThe -h option is broken; --help is fine.genksyms [-V | --version] should display version information and then exit immediately. Instead, it prints the version information and behaves as if no options were given. HISTORYThis versioning concept is a result from discussions, not at least on the KERNEL-channel, with a lot of people.The genksyms utility was created in 1994 by Bjorn Ekwall <bj0rn@blox.se> being mostly inspired by Jacques Gelinas <jack@solucorp.ca> and Jeremy Fitzhardinge <jeremy@suite.sw.oz.au> It was rewritten in 1996 by Richard Henderson to use a proper lexer and parser.
IndexThis document was created by man2html, using the manual pages. Time: 01:01:01 GMT, April 25, 2024 |