Invalid pointer address after mmap (uio) I am trying to use mmap to map a uio device for user-space usage. This is what I use in my code: