4 ms·
>"But what's this ttyUSB0 thing? It's a file of course! Everything is a file in *nix." Isn't this not really true? I remember it was a long point of discussion
by PascLeRasc 9y ago
>"But what's this ttyUSB0 thing? It's a file of course! Everything is a file in *nix."
Isn't this not really true? I remember it was a long point of discussion in an embedded class I took years ago but can't remember exactly what was said.
- c3534l 9y agoI know that was originally the idea, but I doubt very much they've religiously kept up with that abstraction.
- microcolonel 9y agoIt's semi-true. Most things are still basically files, it's just that a lot of things get shoved through ioctls rather than reads, writes, and mmap. You still configure PCIe DMA through a file-based interface, but the ring buffers get mapped directly into your process. I think technically "everything" at least starts with an access to a file, but maybe not every interaction is done with a file.
- jononor 9y agoMany of the APIs for devices are through special ioctls, not through read/write of the file contents. Possibly what was referred to.