Re: mmap() problem

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Wed, 28 Jul 2010 12:51:27 +0000
In message <201007281056.43100.hselasky_at_c2i.net>, Hans Petter Selasky writes:

>When is it safe to free memory which has been mmapped to a user-space 
>application? After close() or during close() or before close() or when the 
>process/thread terminates?

Assuming you mean memory activated via devsw->mmap:  never.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Wed Jul 28 2010 - 11:08:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC