chardev now writes path to buffer