The phaseout of the mmap() file operation in Linux

lwn.net

110 points by chmaynard 6 days ago


Denvercoder9 - 6 days ago

To be clear, this is about the internal implementation in the kernel, the mmap() system call is not going anywhere.

DonHopkins - 2 days ago

I hope the new API is flexible enough to support my proposed /dev/seven, an infinite source of ^G.

https://news.ycombinator.com/item?id=17532285

>DonHopkins on July 14, 2018 | parent | context | favorite | on: The everything-is-a-file principle – Linus Torvald...

>I always wanted /dev/zero, which is used to mmap zeros into memory, to be more general and use the device minor number to define which byte gets mapped, so you could mknod /dev/seven with a minor number of 7, to provide an infinite source of beeps!

doubletwoyou - 3 days ago

That comment about how /dev/zero used to be used to allocate anonymous pages, anyone have more info? All I could find was a wikipedia article [0]

[0] https://en.m.wikipedia.org/wiki//dev/zero

drob518 - 2 days ago

Yea, that’s a clickbait headline. A lot less concerning once you read the first paragraphs.