--- Quote Start ---
originally posted by abg@Jul 21 2006, 02:16 AM
in my linux-2.6.x/mm/nommu.c file there seems not to be any do_mmap_private function... :-( anyway... is a little strange that the error could be in the nommu.c, isn't it? because if it were, it should fail to everybody... i think.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=17035)
--- quote end ---
--- Quote End ---
The error isn't in nommu.c - its just where I worked around it. The error comes from the call to a file mmap via a function pointer, which then returns NULL.
Which version of the source are you using? If its a bit older, your do_mmap_private may be rolled up into do_mmap_pgoff (also in nommu.c)
Anyway, I believe the reason module loading is failing is because of the ramfs_nommu_mmap function being a stub (see linux-2.6.x/fs/ramfs/file-nommu.c)...
int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
{
return 0;
}
Shouldn't this be setting vma->vm_start to something at least?
If your modules reside somewhere other than ramfs, everything seems to work OK. Try loading your modules from a filesystem on a CF card or something...
Mike