chr_dev write