Or was some amount heap memory always just mapped into the process in early UNIX so that the need to map more pages only appeared as programs started to demand more heap memory than whatever the standard amount was?
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!
Denvercoder9•4mo ago
K0IN•4mo ago
porridgeraisin•4mo ago
sethops1•4mo ago
o11c•4mo ago
Or all sorts of things in /proc/ and /sys/.
And the sheer nastiness of PPID 0.
And ...
aa-jv•4mo ago
denotational•4mo ago
dooglius•4mo ago
commandersaki•4mo ago
arp242•4mo ago
ajross•4mo ago
This is a big, big reorg even for Linux.
[1] To be fair, most of which probably don't support mapping.
kragen•4mo ago
Also, it's not that the core kernel is ceasing to provide a facility that drivers depended on; rather, it's ceasing to depend on a facility that drivers provided. But doing so involves adding this new mmap_prepare() thing, which is making the kernel depend on a new facility that drivers now must provide, I guess?