This is a test to see if it is possible to set up a character device in userspace, within a devcontainer running in GitHub Codespaces
The example is taken from libfuse:
- Create a new codespace
- Open the terminal (Ctrl/Cmd + J)
- Run
make
- Run
./main -d -n test
A new character device should now appear as /dev/test
. This just works as a buffer that you can read and write from, as if it was a file.
- Run
echo "hello world" > /dev/test
- Run
cat /dev/test
This should output hello world
to stdout