Date: Tue, 14 Mar 2017 10:09:05 +0100 From: Manuel =?iso-8859-1?Q?St=FChn?= <freebsdnewbie@freenet.de> To: freebsd-hackers@freebsd.org Subject: mmap device-drivers Message-ID: <20170314090905.GA94880@freebsd-t420.fritz.box>
next in thread | raw e-mail | index | archive | help
Hi, is it possible for a device driver to keep track if there are still active mmap() pointers pointing to that device? Linux does have something like struct vm_operations_struct vm_ops = { .close = vm_close, }; where vm_close gets called when any mmapped pointer goes out of scope and the driver can refcount the mappers. Is there something similar in freebsd?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170314090905.GA94880>