Lines Matching refs:buf_printf
1664 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf, in buf_printf() function
1781 buf_printf(b, "#include <linux/module.h>\n"); in add_header()
1782 buf_printf(b, "#include <linux/export-internal.h>\n"); in add_header()
1783 buf_printf(b, "#include <linux/compiler.h>\n"); in add_header()
1784 buf_printf(b, "\n"); in add_header()
1785 buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); in add_header()
1786 buf_printf(b, "\n"); in add_header()
1787 buf_printf(b, "__visible struct module __this_module\n"); in add_header()
1788 buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n"); in add_header()
1789 buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); in add_header()
1791 buf_printf(b, "\t.init = init_module,\n"); in add_header()
1793 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" in add_header()
1796 buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n"); in add_header()
1797 buf_printf(b, "};\n"); in add_header()
1800 buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n"); in add_header()
1803 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); in add_header()
1806 buf_printf(b, "\nMODULE_INFO(test, \"Y\");\n"); in add_header()
1814 buf_printf(buf, "\n"); in add_exported_symbols()
1819 buf_printf(buf, "KSYMTAB_%s(%s, \"%s\", \"%s\");\n", in add_exported_symbols()
1828 buf_printf(buf, "\n"); in add_exported_symbols()
1839 buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n", in add_exported_symbols()
1854 buf_printf(b, "\n"); in add_extended_versions()
1855 buf_printf(b, "static const u32 ____version_ext_crcs[]\n"); in add_extended_versions()
1856 buf_printf(b, "__used __section(\"__version_ext_crcs\") = {\n"); in add_extended_versions()
1865 buf_printf(b, "\t0x%08x,\n", s->crc); in add_extended_versions()
1867 buf_printf(b, "};\n"); in add_extended_versions()
1869 buf_printf(b, "static const char ____version_ext_names[]\n"); in add_extended_versions()
1870 buf_printf(b, "__used __section(\"__version_ext_names\") =\n"); in add_extended_versions()
1882 buf_printf(b, "\t\"%s\\0\"\n", s->name); in add_extended_versions()
1884 buf_printf(b, ";\n"); in add_extended_versions()
1897 buf_printf(b, "\n"); in add_versions()
1898 buf_printf(b, "static const struct modversion_info ____versions[]\n"); in add_versions()
1899 buf_printf(b, "__used __section(\"__versions\") = {\n"); in add_versions()
1919 buf_printf(b, "\t{ 0x%08x, \"%s\" },\n", in add_versions()
1923 buf_printf(b, "};\n"); in add_versions()
1937 buf_printf(b, "\n"); in add_depends()
1938 buf_printf(b, "MODULE_INFO(depends, \""); in add_depends()
1949 buf_printf(b, "%s%s", first ? "" : ",", p); in add_depends()
1952 buf_printf(b, "\");\n"); in add_depends()
1958 buf_printf(b, "\n"); in add_srcversion()
1959 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n", in add_srcversion()
2025 buf_printf(&buf, in write_vmlinux_export_c_file()
2047 buf_printf(&buf, "\n"); in write_mod_c_file()
2049 buf_printf(&buf, "MODULE_ALIAS(\"%s\");\n", alias->str); in write_mod_c_file()
2143 buf_printf(&buf, "0x%08x\t%s\t%s\tEXPORT_SYMBOL%s\t%s\n", in write_dump()
2164 buf_printf(&ns_deps_buf, "%s.ko:", mod->name); in write_namespace_deps_files()
2167 buf_printf(&ns_deps_buf, " %s", ns->namespace); in write_namespace_deps_files()
2169 buf_printf(&ns_deps_buf, "\n"); in write_namespace_deps_files()