Lines Matching defs:inode
32 * altogether: it's in the inode now.
122 static int sock_close(struct inode *inode, struct file *file);
304 static struct inode *sock_alloc_inode(struct super_block *sb)
324 static void sock_free_inode(struct inode *inode)
328 ei = container_of(inode, struct socket_alloc, vfs_inode);
371 struct dentry *dentry, struct inode *inode,
393 struct dentry *dentry, struct inode *inode,
624 * Allocate a new inode and socket object. The two are bound together
631 struct inode *inode;
634 inode = new_inode_pseudo(sock_mnt->mnt_sb);
635 if (!inode)
638 sock = SOCKET_I(inode);
640 inode->i_ino = get_next_ino();
641 inode->i_mode = S_IFSOCK | S_IRWXUGO;
642 inode->i_uid = current_fsuid();
643 inode->i_gid = current_fsgid();
644 inode->i_op = &sockfs_inode_ops;
650 static void __sock_release(struct socket *sock, struct inode *inode)
657 if (inode)
658 inode_lock(inode);
661 if (inode)
662 inode_unlock(inode);
682 * callback, and the inode is then released if the socket is bound to
683 * an inode not a file.
1419 static int sock_close(struct inode *inode, struct file *filp)
1421 __sock_release(SOCKET_I(inode), inode);