kmem is a character device file that is used to examine (and even patch) the system. The file kmem is the same as mem, except that the kernel virtual memory rather than physical memory is accessed.