Re: implementing mmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



vinit dhatrak wrote, Wednesday 23 September 2009:
> huh? the code which you gave to us already had mmap with
> "PROT_READ|PROT_WRITE" and it even worked with my setup.
> But, if I use PROT_NONE then it crashes with segfault, which is
> perfectly correct as such pages are not meant to be accessed

Sorry, I've been really unclear, let's try to re-explain:

yes, it's as you said, with PROT_NONE it ends in a segfault.
The thing I missed to say is that I didn't call SetPageReserved(), that 
makes me see only zeroes, whatever PROT_{READ,WRITE} I used.

Make a check with the code you provided helps a lot ;)
Thanks, bye.
--
-gaspa-
-----------------------------------------------
-------- https://launchpad.net/~gaspa ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux