The HyperNews Linux KHG Discussion Pages

Question: Does MMAP work with Redhat 4.2?

Forum: The Linux Kernel Hackers' Guide
Keywords: MMAP memory error
Date: Tue, 21 Apr 1998 10:54:04 GMT
From: Guy <>


I'm getting an error with MMAP on Redhat 4.2... The same code worked just fine when compiled on a Slakware 1.2.13 system...

The code actually compiles just fine, but I get a runtime error which says, "Segmentation Fault (Core Dumped)" when I try to access the memory -- I later found that MMAP was returning a "EINVAL" error...

Does the MMAP function work on Redhat 4.2?

What are the differences between Redhat 4.2 and Slakware 1.2.13 with respect to the MMAP function?

I've verified that my start and length values are appropriate (I even tried setting my start value to zero, but that didn't seem to work). How do I find a PAGESIZE boundary? How do I "allign" this?

                       thanks for your help,


1. None: Yes, it works just fine. by Michael K. Johnson newest
-> Ok: It Works! Thanks! by Guy newest