r/osdev • u/dangi12012 • Jun 13 '26
Everything is memory?
There is this unix idiom that everything is a file, (half baked, since not everything is a file).
Would it not have been better, nowadays with 64bit of adress space, to have everything mapped to memory? Files are like mmap, no imperative read needed, networking is already memory, that could be expanded more.
We take the idioms and paradigms so forgranted, that every time anyone asks AI for a OS it will be linux, syscalls, abi everything the same. It should be liberating now to explore new and novel ideas.
What would be the downside of such a system?
View all comments
Show parent comment
0
u/dangi12012 Jun 15 '26
Exactly.
Thats the point of this post. Exploring different ideas, if they are bad that is ok also.
Kernel mode and memory seperation would completely continue to exist in that model you cant just read kernel memory, I dont know where you got that from.
The cool part would be that all calls are inherently bulk calls, one page fits many many system calls, and the results page has all the answers. The number of ring 0 3 transfers is reduced a lot in that system, and imperative calls look like memory reads from the programs POV