Lines Matching defs:inode
32 * altogether: it's in the inode now.
117 static int sock_close(struct inode *inode, struct file *file);
249 static struct inode *sock_alloc_inode(struct super_block *sb)
269 static void sock_free_inode(struct inode *inode)
273 ei = container_of(inode, struct socket_alloc, vfs_inode);
316 struct dentry *dentry, struct inode *inode,
337 struct dentry *dentry, struct inode *inode,
563 * Allocate a new inode and socket object. The two are bound together
570 struct inode *inode;
573 inode = new_inode_pseudo(sock_mnt->mnt_sb);
574 if (!inode)
577 sock = SOCKET_I(inode);
579 inode->i_ino = get_next_ino();
580 inode->i_mode = S_IFSOCK | S_IRWXUGO;
581 inode->i_uid = current_fsuid();
582 inode->i_gid = current_fsgid();
583 inode->i_op = &sockfs_inode_ops;
589 static void __sock_release(struct socket *sock, struct inode *inode)
594 if (inode)
595 inode_lock(inode);
598 if (inode)
599 inode_unlock(inode);
619 * callback, and the inode is then released if the socket is bound to
620 * an inode not a file.
1283 static int sock_close(struct inode *inode, struct file *filp)
1285 __sock_release(SOCKET_I(inode), inode);