Lines Matching refs:pfn
204 * The idea is to retrieve all the pfn numbers that have been soft-offined
205 * (generating a "Soft offlining pfn 0x..." message in the kernel ring buffer)
207 * And to put these pages back online by writing the pfn number to the
208 * <debugfs>/hwpoison/unpoison-pfn special file.
211 #define OFFLINE_PATTERN "Soft offlining pfn 0x"
214 /* return the pfn if the kmsg msg is a soft-offline indication*/
240 unsigned long pfn;
257 pfn = parse_kmsg_soft_offlined_pfn(buf, sz);
258 if (pfn)
259 pfns[found++] = pfn;
285 static void unpoison_this_pfn(unsigned long pfn, int fd)
289 snprintf(pfn_str, sizeof(pfn_str), "0x%lx", pfn);
293 /* Find and open the <debugfs>/hwpoison/unpoison-pfn special file */
296 char *added_file_path = "/hwpoison/unpoison-pfn";
347 * hwpoison/unpoison-pfn for each of them.