Re: mmap issue.

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

 



Hi...

Let's see if my eye glasses take it right :D

On Fri, Sep 17, 2010 at 19:54, naveen yadav <yad.naveen@xxxxxxxxx> wrote:
> Hi All,
>
> I am facing some issue while using mmap .
>
> Issue 1.msync(ptr, PageSize, MS_ASYNC) if i pass MS_SYNC it fail with
> bad option.
Hmm, first you did :
fd = open ("/dev/mem", O_RDWR|O_SYNC)

and then you did:
msync(ptr, PageSize, MS_ASYNC)??

Isn't that a contrary?

> Issue 2. If i run the above program on target(ARM). the value is not changing
>
> parent leaving critical section: -369098746
> parent leaving critical section: -369098746
> msync completed successfully
> parent leaving critical section: -369098746
> parent entered critical section -369098746

can you make this clearer? you're running it on x86 and ARM?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
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