Messages in this thread | | | Date | Sun, 12 Oct 2003 19:17:06 -0700 | From | Andrew Morton <> | Subject | Re: [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/
| |