Lines Matching refs:buf_printf

1678 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,  in buf_printf()  function
1836 buf_printf(b, "#include <linux/module.h>\n"); in add_header()
1837 buf_printf(b, "#include <linux/export-internal.h>\n"); in add_header()
1838 buf_printf(b, "#include <linux/compiler.h>\n"); in add_header()
1839 buf_printf(b, "\n"); in add_header()
1840 buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); in add_header()
1841 buf_printf(b, "\n"); in add_header()
1842 buf_printf(b, "__visible struct module __this_module\n"); in add_header()
1843 buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n"); in add_header()
1844 buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); in add_header()
1846 buf_printf(b, "\t.init = init_module,\n"); in add_header()
1848 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" in add_header()
1851 buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n"); in add_header()
1852 buf_printf(b, "};\n"); in add_header()
1855 buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n"); in add_header()
1858 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); in add_header()
1861 buf_printf(b, "\nMODULE_INFO(test, \"Y\");\n"); in add_header()
1869 buf_printf(buf, "\n"); in add_exported_symbols()
1874 buf_printf(buf, "KSYMTAB_%s(%s, \"%s\", \"%s\");\n", in add_exported_symbols()
1883 buf_printf(buf, "\n"); in add_exported_symbols()
1894 buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n", in add_exported_symbols()
1909 buf_printf(b, "\n"); in add_extended_versions()
1910 buf_printf(b, "static const u32 ____version_ext_crcs[]\n"); in add_extended_versions()
1911 buf_printf(b, "__used __section(\"__version_ext_crcs\") = {\n"); in add_extended_versions()
1920 buf_printf(b, "\t0x%08x,\n", s->crc); in add_extended_versions()
1922 buf_printf(b, "};\n"); in add_extended_versions()
1924 buf_printf(b, "static const char ____version_ext_names[]\n"); in add_extended_versions()
1925 buf_printf(b, "__used __section(\"__version_ext_names\") =\n"); in add_extended_versions()
1937 buf_printf(b, "\t\"%s\\0\"\n", s->name); in add_extended_versions()
1939 buf_printf(b, ";\n"); in add_extended_versions()
1952 buf_printf(b, "\n"); in add_versions()
1953 buf_printf(b, "static const struct modversion_info ____versions[]\n"); in add_versions()
1954 buf_printf(b, "__used __section(\"__versions\") = {\n"); in add_versions()
1974 buf_printf(b, "\t{ 0x%08x, \"%s\" },\n", in add_versions()
1978 buf_printf(b, "};\n"); in add_versions()
1992 buf_printf(b, "\n"); in add_depends()
1993 buf_printf(b, "MODULE_INFO(depends, \""); in add_depends()
2004 buf_printf(b, "%s%s", first ? "" : ",", p); in add_depends()
2007 buf_printf(b, "\");\n"); in add_depends()
2013 buf_printf(b, "\n"); in add_srcversion()
2014 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n", in add_srcversion()
2081 buf_printf(&buf, in write_vmlinux_export_c_file()
2086 buf_printf(&buf, in write_vmlinux_export_c_file()
2092 buf_printf(&buf, "MODULE_INFO(%s.alias, \"%s\");\n", in write_vmlinux_export_c_file()
2117 buf_printf(&buf, "\n"); in write_mod_c_file()
2119 buf_printf(&buf, "MODULE_ALIAS(\"%s\");\n", alias->str); in write_mod_c_file()
2213 buf_printf(&buf, "0x%08x\t%s\t%s\tEXPORT_SYMBOL%s\t%s\n", in write_dump()
2234 buf_printf(&ns_deps_buf, "%s.ko:", mod->name); in write_namespace_deps_files()
2237 buf_printf(&ns_deps_buf, " %s", ns->namespace); in write_namespace_deps_files()
2239 buf_printf(&ns_deps_buf, "\n"); in write_namespace_deps_files()