Skip to content

Commit a03352d

Browse files
bwallanIngo Molnar
authored andcommitted
x86: export set_memory_ro and set_memory_rw
Export set_memory_ro() and set_memory_rw() calls for use by drivers that need to have more debug information about who might be writing to memory space. this was initially developed for use while debugging a memory corruption problem with e1000e. Signed-off-by: Bruce Allan <[email protected]> Signed-off-by: Jesse Brandeburg <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 94aca1d commit a03352d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/mm/pageattr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,13 @@ int set_memory_ro(unsigned long addr, int numpages)
906906
{
907907
return change_page_attr_clear(addr, numpages, __pgprot(_PAGE_RW));
908908
}
909+
EXPORT_SYMBOL_GPL(set_memory_ro);
909910

910911
int set_memory_rw(unsigned long addr, int numpages)
911912
{
912913
return change_page_attr_set(addr, numpages, __pgprot(_PAGE_RW));
913914
}
915+
EXPORT_SYMBOL_GPL(set_memory_rw);
914916

915917
int set_memory_np(unsigned long addr, int numpages)
916918
{

0 commit comments

Comments
 (0)