hi,
this sounds awkward, but how do we allocate mmap to a process, if
we want to explicitly do it? used the kmem_cache_alloc(mm_cachep,...) to
allocate memory to (task_struct)->mm, later allocated some vm_areas (no
dynamic libraries) similarly... after using pgd_alloc to allocate the
pgd, added mm to the mmlist and copied all other variables directly from
the original mm of that process... then, i tried to start the process...
the response was that the system rebooted instantaneously (i expected it
to generate some page-faults, but surprisingly nothing like that
happened...). On trying to learn about that further, thought i was missing
on the PMDs and the PTEs.
could someone enlighten me on what could have gone wrong in the above setup.
Thanks for your ideas.
Prasad.
--
Failure is not an option