Lines Matching refs:buf_printf
1710 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,
1799 buf_printf(b, "#include <linux/module.h>\n");
1800 buf_printf(b, "#include <linux/vermagic.h>\n");
1801 buf_printf(b, "#include <linux/compiler.h>\n");
1802 buf_printf(b, "\n");
1803 buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n");
1804 buf_printf(b, "\n");
1805 buf_printf(b, "struct module __this_module\n");
1806 buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
1807 buf_printf(b, " .name = KBUILD_MODNAME,\n");
1809 buf_printf(b, " .init = init_module,\n");
1811 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n"
1814 buf_printf(b, " .arch = MODULE_ARCH_INIT,\n");
1815 buf_printf(b, "};\n");
1823 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n");
1857 buf_printf(b, "\n");
1858 buf_printf(b, "static const struct modversion_info ____versions[]\n");
1859 buf_printf(b, "__used\n");
1860 buf_printf(b, "__attribute__((section(\"__versions\"))) = {\n");
1870 buf_printf(b, "\t{ %#8x, \"%s\" },\n", s->crc, s->name);
1873 buf_printf(b, "};\n");
1888 buf_printf(b, "\n");
1889 buf_printf(b, "static const char __module_depends[]\n");
1890 buf_printf(b, "__used\n");
1891 buf_printf(b, "__attribute__((section(\".modinfo\"))) =\n");
1892 buf_printf(b, "\"depends=");
1907 buf_printf(b, "%s%s", first ? "" : ",", p);
1910 buf_printf(b, "\";\n");
1916 buf_printf(b, "\n");
1917 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n",
2038 buf_printf(&buf, "0x%08x\t%s\t%s\t%s\n",