Added base line to read and write cdev methods

Signed-off-by: carlos4ndre <carlos.ulrich@gmail.com>