lkml.org 
[lkml]   [2001]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectflush_page_to_ram() question in kernel/ptrace.c
From linux/kernel/ptrace.c, access_one_page():

> flush_cache_page(vma, addr);
>
> if (write) {
> maddr = kmap(page);
> memcpy(maddr + (addr & ~PAGE_MASK), buf, len);
> flush_page_to_ram(page);
> flush_icache_page(vma, page);
> kunmap(page);
> } else {
> maddr = kmap(page);
> memcpy(buf, maddr + (addr & ~PAGE_MASK), len);
> flush_page_to_ram(page);
^^^^^^^^^^^^^^^^^^^^^^
> kunmap(page);
> }

Is this flush required?

The memcpy read from the mapping, it didn't write.

--
Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.023 / U:1.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site