dev = container_of(inode->i_cdev, struct mx_mmap_dev, cdev);
+ SCSC_TAG_INFO(MX_MMAP, "open %p\n", filp);
+
filp->private_data = dev;
return 0;
int mx_mmap_release(struct inode *inode, struct file *filp)
{
+ SCSC_TAG_INFO(MX_MMAP, "close %p\n", filp);
+
/* TODO : Unmap pfn_range */
return 0;
}
mx_dev = container_of(inode->i_cdev, struct mx_mmap_dev, cdev);
+ SCSC_TAG_INFO(MX_MMAP, "open %p\n", filp);
+
filp->private_data = mx_dev;
mx_dev->filp = filp;
ret = kfifo_alloc(&mx_dev->fifo, GDB_TRANSPORT_BUF_LENGTH, GFP_KERNEL);
mx_dev = container_of(inode->i_cdev, struct mx_mmap_dev, cdev);
+ SCSC_TAG_INFO(MX_MMAP, "close %p\n", filp);
+
if (mx_dev->filp == NULL) {
SCSC_TAG_ERR(MX_MMAP, "Device already closed\n");
return -EIO;