Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 793 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 793 Bytes

CUSE in devcontainer

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:

Getting started

  1. Create a new codespace
  2. Open the terminal (Ctrl/Cmd + J)
  3. Run make
  4. 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.

  1. Run echo "hello world" > /dev/test
  2. Run cat /dev/test

This should output hello world to stdout