linux kernel mode calculator as a chardev