title: How does one disable access to the keyboard and mouse from a linux kernel module?
body: <p>I'm trying to write a kernel module which disables input between certain times of day. I found out how to get the time (<a href="https://stackoverflow.com/questions/5077192/how-to-get-current-hour-time-of-day-in-linux-kernel-space">How to get current hour (time of day) in linux kernel space</a>) and how to schedule a function.
  I can't seem to work out how to disable the inputs though. I'm thinking there has to be some place the kernel to do this but having read the API I'm still no further forward. I suppose I should just access the drivers directly and shut them off or something, but that seems a little non-generic.
  Is this even possible?</p>
  
  <p>Thanks for your time.</p>