I am trying to understand how linux filesystems work, but the only linux system I have is my android phone (rooted) so I am asking on the basis of what I see oin the android phone using adb shell.
From here and here I have read that every hardware connected to the android system is seen by the OS as a file. So /dev/dsp is the audio hardware, and writing anything into this file appears as sound through the speaker (so I am supposing if I write a stream of 1 byte characters in this file they will be interpreted as 2 byte words first, interleaved for left and right channel like in a wav file and played out through the speaker?). However going into /dev in adb shell and using the ls command I cannot see the dsp file.
My question is, is the naming of files in the /dev folder standard, or can it have any name? It says here that the naming can be completely random.
There is a naming scheme of sorts but in the vast majority of cases these are completely illogical.
If that's true then how can we know what file represents what?