Skip to Content
Linux Device Drivers Development
book

Linux Device Drivers Development

by John Madieu
October 2017
Intermediate to advanced
586 pages
14h 8m
English
Packt Publishing
Content preview from Linux Device Drivers Development

Module information

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux Device Drivers, Second Edition

Linux Device Drivers, Second Edition

Jonathan Corbet, Alessandro Rubini
Linux Device Drivers, 3rd Edition

Linux Device Drivers, 3rd Edition

Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman

Publisher Resources

ISBN: 9781785280009Supplemental Content