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)

<moduleparam.h>

#define _MODULE_INFO(tag, name, info) \

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

_attribute_used__\

_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