Genera Module Information

The .modinfo section of a module includes general information set using module_info: <module.h>

#define MODULE_INFO(tag, info) _MODULE_INFO(tag, tag, info)


#define _MODULE_INFO(tag, name, info) \

static const char _module_cat(name,_LINE_)[] \


_attribute_((section(".modinfo"),unused)) = _stringify(tag) "=" info

In addition to this general macro that generates tag = info entries, there are a range of macros that create entries with pre-defined meanings. These are discussed below.

Continue reading here: Module License

Was this article helpful?

0 0