I'm reading through the mmap() code for nommu systems and am a little puzzled by one of the comments...
static int do_mmap_shared_file(struct vm_area_struct *vma, unsigned long len) { int ret; ret = vma->vm_file->f_op->mmap(vma->vm_file, vma); if (ret != -ENOSYS) return ret; /* getting an ENOSYS error indicates that direct mmap isn't * possible (as opposed to tried but failed) so we'll fall * through to making a private copy of the data and mapping * that if we can */ return -ENODEV; } This seems to imply that the author expected a failed shared mapping to take a private copy instead but I can't see anywhere where this actually happens. Did I miss where this happens (in which case can someone point me at where this occurs), did the code do this before but doesn't do it any more or was this something that should happen but doesn't yet? Thanks, Dave
_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev