d_map_single - how should it work?

From: Marcin Cieslak <saper_at_saper.info>
Date: Wed, 25 Oct 2023 07:58:41 UTC
Hello,

is there any documentation for cdevsw methods?
I am interested in knowing how d_map_single should
be written.

Most specifically, I want to know if the driver
has a chance to track mmaped allocations on its own
(as far as I can see there unmap(2) does not call
any of the driver's methods).

Marcin