You can get a similar effect on recent Linux versions with madvise() with MADV_FREE, although the interface for determining if the page was freed is a bit awkward: the page will be appear as zeroed if the OS decided to free it. Depending on what you are storing there and whether zero data is valid it may be awkward to detect.
You can cancel the free request by performing a write, which is also a bit of an awkward API.
You can cancel the free request by performing a write, which is also a bit of an awkward API.