diff --git a/include/page-read.h b/include/page-read.h index 102b3973c..246a538e2 100644 --- a/include/page-read.h +++ b/include/page-read.h @@ -68,4 +68,5 @@ struct page_read { extern int open_page_read(int pid, struct page_read *); extern void pagemap2iovec(PagemapEntry *pe, struct iovec *iov); +extern int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, bool warn); #endif /* __CR_PAGE_READ_H__ */ diff --git a/page-read.c b/page-read.c index f3a4cba9c..a6330cbcb 100644 --- a/page-read.c +++ b/page-read.c @@ -83,7 +83,7 @@ static void skip_pagemap_pages(struct page_read *pr, unsigned long len) pr->cvaddr += len; } -static int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, bool warn) +int seek_pagemap_page(struct page_read *pr, unsigned long vaddr, bool warn) { int ret; struct iovec iov;