mmap - post/pre actions
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Tue Sep 15 15:51:40 EDT 2015
On Tue, 15 Sep 2015 22:40:50 +0300, Ran Shalit said:
> Hello,
>
> I need to implement mmap for non-volatile memory chip (NVRAM).
> I already did something simple, but now I understand that it is not complete:
> The nvram need to be unlock and locked after finishing the memory task
> of read/write.
>
> Does mmap can handle such post/pre actions or not ( I guess that if
> not - I will need to use read/write alternatives) ?
Not sure if it does or not. But the unlock should be done when the mmap
segment is first created, and locked when the last reference to the segment
is removed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150915/3e8a7a8d/attachment.bin
More information about the Kernelnewbies
mailing list