How does reading from /dev/mem affect the memory that is being read? Some devices do things when you read from them. For example, many serial chips remove a byte from their FIFO immediately after you've read it. What happens really depends on the device.