Lines Matching defs:poison
2 * Test program for Linux poison memory error recovery.
3 * This injects poison into various mapping cases and triggers the poison
168 printf("Kernel doesn't support poison injection\n");
229 void poison(char *msg, char *page, enum rmode mode)
293 poison(msg, page, mode);
326 snprintf(buf, sizeof buf, TMPDIR "~poison%d",tmpcount++);
339 snprintf(buf, PATHBUFLEN, TMPDIR "~poison%d", tmpcount++);
445 optionalerr("explicit read after poison", read(fd, buf, sizeof buf) < 0);
446 optionalerr("explicit write after poison", write(fd, "foobar", 6) < 0);
544 poison(arg->msg, arg->page, arg->mode);
904 /* don't kill me at poison time, but possibly at page fault time */