Date: Mon, 06 Feb 2006 22:54:11 +0100 From: Raaf <freebsd@luna.afraid.org> To: freebsd-hackers@freebsd.org Subject: Freeing mmapped memory Message-ID: <43E7C583.3040904@luna.afraid.org>
next in thread | raw e-mail | index | archive | help
Hi, i am working on a usb driver that allocates some memory when the device is opened using malloc. Now i want user processes to be able to access this memory using mmap and i want to free this memory when it is no longer needed. The problem is that there seems to be no way of knowing for my driver at what time the memory is no longer mapped in a process address space so that i can safely free this memory.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43E7C583.3040904>