title: Linux Iomem protection
body: <p>I want to protect an access to one of my peripheral register space.</p>
  
  <p>So i want to map the peripheral memory and create write protection on it.</p>
  
  <p>So anybody wanting the access will have to call one common function, where it will give the access to write to that memory.</p>
  
  <p>How can it be done in the linux kernel ? </p>
  
  <p>Nobody is going to access that memory from the userspace only different driver will access that register space. So all the driver should call that common function. If they try to access the memory directly it should trap ?</p>
  
  <p>Regards,
  Kalpesh Bafna</p>