October 2017
Intermediate to advanced
586 pages
14h 8m
English
Even without having to read its code, you should be able to gather some information (for example, the author(s), parameter(s) description, license) about a given module. A kernel module uses its .modinfo section to store information about the module. Any MODULE_* macro will update the content of that section with the values passed as parameters. Some of these macros are MODULE_DESCRIPTION(), MODULE_AUTHOR(), and MODULE_LICENSE(). The real underlying macro provided by the kernel to add an entry in the module info section is MODULE_INFO(tag, info), which adds generic info in the form tag = info. This means a driver author could add any free form info he/she wants, such as the following:
MODULE_INFO(my_field_name, "What easy ...