lkml.org 
[lkml]   [2003]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] report user-readable fixmap area in /proc/PID/maps
Linus Torvalds <torvalds@osdl.org> wrote:
>
> If you really want /proc/PID/maps to look right, add a new vm_area_struct,
> see if you can allocate it as part of the "struct mm_struct" so that we
> don't get yet another (unnecessary) allocation on fork time.

It could be done "on demand". So get_user_pages() and the /proc code will
call the new add_fixmap_vma() on entry. Hence the additional overhead is
only incurred when /proc/pid/maps is accessed, or get_user_pages() is
called.

It'll need a new flag in mm_struct. mm_struct.swap_address can be
salvaged: it is no longer used.

-
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:49    [W:0.046 / U:4.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site