Lines Matching defs:inode
8 * Based on inode.c (GadgetFS) which was:
638 static int ffs_ep0_open(struct inode *inode, struct file *file)
640 struct ffs_data *ffs = inode->i_private;
648 return stream_open(inode, file);
651 static int ffs_ep0_release(struct inode *inode, struct file *file)
1191 ffs_epfile_open(struct inode *inode, struct file *file)
1193 struct ffs_epfile *epfile = inode->i_private;
1201 return stream_open(inode, file);
1336 ffs_epfile_release(struct inode *inode, struct file *file)
1338 struct ffs_epfile *epfile = inode->i_private;
1843 static struct inode *__must_check
1849 struct inode *inode;
1851 inode = new_inode(sb);
1853 if (inode) {
1854 struct timespec64 ts = inode_set_ctime_current(inode);
1856 inode->i_ino = get_next_ino();
1857 inode->i_mode = perms->mode;
1858 inode->i_uid = perms->uid;
1859 inode->i_gid = perms->gid;
1860 inode_set_atime_to_ts(inode, ts);
1861 inode_set_mtime_to_ts(inode, ts);
1862 inode->i_private = data;
1864 inode->i_fop = fops;
1866 inode->i_op = iops;
1869 return inode;
1879 struct inode *inode;
1885 inode = ffs_sb_make_inode(sb, data, fops, NULL, &ffs->file_perms);
1886 if (!inode) {
1891 d_add(dentry, inode);
1912 struct inode *inode;
1924 /* Root inode */
1926 inode = ffs_sb_make_inode(sb, NULL,
1930 sb->s_root = d_make_root(inode);