buf_printf
buf_printf(b, "#include <linux/module.h>\n");
buf_printf(b, "#include <linux/export-internal.h>\n");
buf_printf(b, "#include <linux/compiler.h>\n");
buf_printf(b, "\n");
buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n");
buf_printf(b, "\n");
buf_printf(b, "__visible struct module __this_module\n");
buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n");
buf_printf(b, "\t.name = KBUILD_MODNAME,\n");
buf_printf(b, "\t.init = init_module,\n");
buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n"
buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n");
buf_printf(b, "};\n");
buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n");
buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n");
buf_printf(b, "\nMODULE_INFO(test, \"Y\");\n");
buf_printf(buf, "\n");
buf_printf(buf, "KSYMTAB_%s(%s, \"%s\", \"%s\");\n",
buf_printf(buf, "\n");
buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n",
buf_printf(b, "\n");
buf_printf(b, "static const u32 ____version_ext_crcs[]\n");
buf_printf(b, "__used __section(\"__version_ext_crcs\") = {\n");
buf_printf(b, "\t0x%08x,\n", s->crc);
buf_printf(b, "};\n");
buf_printf(b, "static const char ____version_ext_names[]\n");
buf_printf(b, "__used __section(\"__version_ext_names\") =\n");
buf_printf(b, "\t\"%s\\0\"\n", s->name);
buf_printf(b, ";\n");
buf_printf(b, "\n");
buf_printf(b, "static const struct modversion_info ____versions[]\n");
buf_printf(b, "__used __section(\"__versions\") = {\n");
buf_printf(b, "\t{ 0x%08x, \"%s\" },\n",
buf_printf(b, "};\n");
buf_printf(b, "\n");
buf_printf(b, "MODULE_INFO(depends, \"");
buf_printf(b, "%s%s", first ? "" : ",", p);
buf_printf(b, "\");\n");
buf_printf(b, "\n");
buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n",
buf_printf(&buf,
buf_printf(&buf,
buf_printf(&buf, "MODULE_INFO(%s.alias, \"%s\");\n",
buf_printf(&buf, "\n");
buf_printf(&buf, "MODULE_ALIAS(\"%s\");\n", alias->str);
buf_printf(&buf, "0x%08x\t%s\t%s\tEXPORT_SYMBOL%s\t%s\n",
buf_printf(&ns_deps_buf, "%s.ko:", mod->name);
buf_printf(&ns_deps_buf, " %s", ns->namespace);
buf_printf(&ns_deps_buf, "\n");
buf_printf(struct buffer *buf, const char *fmt, ...);