h7x4 / cuse-devcontainer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:GNU General Public License v2.0


Languages

Language:C 97.7%Language:Dockerfile 1.2%Language:Makefile 1.1%