//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
dev_info(g_dev_ptr,"imu opened in RDONLY mode, (numBytesWritten=0x%llx, numBytesRead=0x%llx\n",numBytesWritten,numBytesRead);
dev_dbg(g_dev_ptr,"imu opened in RDONLY mode, (numBytesWritten=0x%llx, numBytesRead=0x%llx\n",numBytesWritten,numBytesRead);
dev_info(g_dev_ptr,"Closing IMU device, numBytesWritten=0x%llx, numBytesRead=0x%llx (only global pointer, does not include files opened in read mode)\n",numBytesWritten,numBytesRead);
dev_dbg(g_dev_ptr,"Closing IMU device, numBytesWritten=0x%llx, numBytesRead=0x%llx (only global pointer, does not include files opened in read mode)\n",numBytesWritten,numBytesRead);