2 ms·
Right I get it. I’m saying there’s a better mapping.
by adamnemecek 8y ago
Right I get it. I’m saying there’s a better mapping.
- rosser 8y agoThan what, an entry in some table in the kernel that you can use to read bytes from the thing it represents and/or write bytes to it? That's what a "file" is in *nix. The on-disk notion of a file sits atop layers of that abstraction. It doesn't, for example, go away when you `rm` it. An entry in a table does, but if some other process had that (disk) file open at the time, its data is still there, readable — and recoverable — through the former file's entry under that pid's /proc/$pid/fd/.