Lines Matching refs:buf_printf

1669 void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,  in buf_printf()  function
1827 buf_printf(b, "#include <linux/module.h>\n"); in add_header()
1828 buf_printf(b, "#include <linux/export-internal.h>\n"); in add_header()
1829 buf_printf(b, "#include <linux/compiler.h>\n"); in add_header()
1830 buf_printf(b, "\n"); in add_header()
1831 buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); in add_header()
1832 buf_printf(b, "\n"); in add_header()
1833 buf_printf(b, "__visible struct module __this_module\n"); in add_header()
1834 buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n"); in add_header()
1835 buf_printf(b, "\t.name = KBUILD_MODNAME,\n"); in add_header()
1837 buf_printf(b, "\t.init = init_module,\n"); in add_header()
1839 buf_printf(b, "#ifdef CONFIG_MODULE_UNLOAD\n" in add_header()
1842 buf_printf(b, "\t.arch = MODULE_ARCH_INIT,\n"); in add_header()
1843 buf_printf(b, "};\n"); in add_header()
1846 buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n"); in add_header()
1849 buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); in add_header()
1852 buf_printf(b, "\nMODULE_INFO(test, \"Y\");\n"); in add_header()
1860 buf_printf(buf, "\n"); in add_exported_symbols()
1865 buf_printf(buf, "KSYMTAB_%s(%s, \"%s\", \"%s\");\n", in add_exported_symbols()
1874 buf_printf(buf, "\n"); in add_exported_symbols()
1885 buf_printf(buf, "SYMBOL_CRC(%s, 0x%08x, \"%s\");\n", in add_exported_symbols()
1900 buf_printf(b, "\n"); in add_extended_versions()
1901 buf_printf(b, "static const u32 ____version_ext_crcs[]\n"); in add_extended_versions()
1902 buf_printf(b, "__used __section(\"__version_ext_crcs\") = {\n"); in add_extended_versions()
1911 buf_printf(b, "\t0x%08x,\n", s->crc); in add_extended_versions()
1913 buf_printf(b, "};\n"); in add_extended_versions()
1915 buf_printf(b, "static const char ____version_ext_names[]\n"); in add_extended_versions()
1916 buf_printf(b, "__used __section(\"__version_ext_names\") =\n"); in add_extended_versions()
1928 buf_printf(b, "\t\"%s\\0\"\n", s->name); in add_extended_versions()
1930 buf_printf(b, ";\n"); in add_extended_versions()
1943 buf_printf(b, "\n"); in add_versions()
1944 buf_printf(b, "static const struct modversion_info ____versions[]\n"); in add_versions()
1945 buf_printf(b, "__used __section(\"__versions\") = {\n"); in add_versions()
1965 buf_printf(b, "\t{ 0x%08x, \"%s\" },\n", in add_versions()
1969 buf_printf(b, "};\n"); in add_versions()
1983 buf_printf(b, "\n"); in add_depends()
1984 buf_printf(b, "MODULE_INFO(depends, \""); in add_depends()
1995 buf_printf(b, "%s%s", first ? "" : ",", p); in add_depends()
1998 buf_printf(b, "\");\n"); in add_depends()
2004 buf_printf(b, "\n"); in add_srcversion()
2005 buf_printf(b, "MODULE_INFO(srcversion, \"%s\");\n", in add_srcversion()
2071 buf_printf(&buf, in write_vmlinux_export_c_file()
2093 buf_printf(&buf, "\n"); in write_mod_c_file()
2095 buf_printf(&buf, "MODULE_ALIAS(\"%s\");\n", alias->str); in write_mod_c_file()
2189 buf_printf(&buf, "0x%08x\t%s\t%s\tEXPORT_SYMBOL%s\t%s\n", in write_dump()
2210 buf_printf(&ns_deps_buf, "%s.ko:", mod->name); in write_namespace_deps_files()
2213 buf_printf(&ns_deps_buf, " %s", ns->namespace); in write_namespace_deps_files()
2215 buf_printf(&ns_deps_buf, "\n"); in write_namespace_deps_files()