Lines Matching defs:inode
542 drm_fs_inode_free(void *inode)
544 KASSERT(inode == NULL);
553 * stand-alone address_space objects, so we need an underlying inode. As there
554 * is no way to allocate an independent inode easily, we need a fake internal
557 * The drm_fs_inode_new() function allocates a new inode, drm_fs_inode_free()
559 * the inode. But each drm_fs_inode_new() call must be paired with exactly one
562 * between multiple inode-users. You could, technically, call
564 * iput(), but this way you'd end up with a new vfsmount for each inode.
582 static struct inode *drm_fs_inode_new(void)
584 struct inode *inode;
593 inode = alloc_anon_inode(drm_fs_mnt->mnt_sb);
594 if (IS_ERR(inode))
597 return inode;
600 static void drm_fs_inode_free(struct inode *inode)
602 if (inode) {
603 iput(inode);
714 DRM_ERROR("Cannot allocate anonymous inode: %d\n", ret);
1183 static int drm_stub_open(struct inode *inode, struct file *filp)
1192 minor = drm_minor_acquire(iminor(inode));
1206 err = filp->f_op->open(inode, filp);