Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2010 12:51:27 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: mmap() problem 
Message-ID:  <1866.1280321487@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 28 Jul 2010 10:56:43 %2B0200." <201007281056.43100.hselasky@c2i.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

In message <201007281056.43100.hselasky@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1866.1280321487>