/* We enforce only one user at a time here with the open/close. Also clear the previous interrupt data on an open, and clean up things on a close.  */
static int rtc_open(struct inode *inode, struct file *file)
/* We enforce only one user at a time here with the open/close. Also clear the previous interrupt data on an open, and clean up things on a close.  */
static int rtc_open(struct inode *inode, struct file *file)
{
	lock_kernel();
	if(rtc_status) {
		unlock_kernel();
		return -EBUSY;
	}
	rtc_status = 1;
	unlock_kernel();
	return 0;
}