Lines Matching defs:out_file
69 static FILE *out_file;
251 out_file = fopen(out_path, "w");
252 if (!out_file) {
258 fprintf(out_file, "/* Automatically generated - do not edit */\n");
259 fprintf(out_file, "#include <linux/linkage.h>\n");
260 fprintf(out_file, "#include <linux/mm.h>\n");
261 fprintf(out_file, "#include <asm/vdso.h>\n");
262 fprintf(out_file, "static int vdso_mremap(\n");
263 fprintf(out_file, " const struct vm_special_mapping *sm,\n");
264 fprintf(out_file, " struct vm_area_struct *new_vma)\n");
265 fprintf(out_file, "{\n");
266 fprintf(out_file, " unsigned long new_size =\n");
267 fprintf(out_file, " new_vma->vm_end - new_vma->vm_start;\n");
268 fprintf(out_file, " if (vdso_image.size != new_size)\n");
269 fprintf(out_file, " return -EINVAL;\n");
270 fprintf(out_file, " current->mm->context.vdso =\n");
271 fprintf(out_file, " (void *)(new_vma->vm_start);\n");
272 fprintf(out_file, " return 0;\n");
273 fprintf(out_file, "}\n");
276 fprintf(out_file,
281 fprintf(out_file, "\n\t");
282 fprintf(out_file, "0x%02x, ", ((unsigned char *)vdso)[i]);
284 fprintf(out_file, "\n};\n");
287 fprintf(out_file,
291 fprintf(out_file, "struct mips_vdso_image vdso_image%s%s = {\n",
293 fprintf(out_file, "\t.data = vdso_data,\n");
294 fprintf(out_file, "\t.size = PAGE_ALIGN(%zu),\n", vdso_size);
295 fprintf(out_file, "\t.mapping = {\n");
296 fprintf(out_file, "\t\t.name = \"[vdso]\",\n");
297 fprintf(out_file, "\t\t.pages = vdso_pages,\n");
298 fprintf(out_file, "\t\t.mremap = vdso_mremap,\n");
299 fprintf(out_file, "\t},\n");
304 fclose(out_file);
308 fprintf(out_file, "};\n");
309 fclose(out_file);