DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Dear
Subscribers,
As most of you will
already know, one can use get_user_pages to get a struct pages list of a certain
user space buffer.
While doing this,
get_user_pages also locks the pages into physical mem (preventing them from
being swapped out to disk, or moved within phys mem) for usage with e.g.
DMA.
Now here's my
question: what happens if you call get_user_pages twice on the same buffer ?
Will it keep track of how many times a page has been locked
?
Meaning if I locked
the same buffer "twice", will it still be locked when I unlock it once (using
page_cache_release) ?
Regards,
Tom