add a char device structure to kernel
Fix compiling warnings. Add open and release operations