kmem: support read,write,llseek functions