//printk("imu opened in R/W mode, (numBytesWritten=0x%x, numBytesRead=0x%x\n", numBytesWritten, numBytesRead);
}else{// read mode, use file pointer as read pointer, start from the latest data
filp->f_pos=numBytesWritten;// there is still a chance to lseek to an earlier position - reopening at the position of the total number of bytes written to the buffer
//printk("imu opened in RDONLY mode, (numBytesWritten=0x%x, numBytesRead=0x%x\n", numBytesWritten, numBytesRead);
dev_dbg(g_dev_ptr,"imu opened in RDONLY mode, (numBytesWritten=0x%llx, numBytesRead=0x%llx\n",numBytesWritten,numBytesRead);