1 /* -*- linux-c -*- --------------------------------------------------------- *
3 * linux/fs/devpts/devpts_i.h
5 * Copyright 1998 H. Peter Anvin -- All Rights Reserved
7 * This file is part of the Linux kernel and is made available under
8 * the terms of the GNU General Public License, version 2, or at your
9 * option, any later version, incorporated herein by reference.
11 * ------------------------------------------------------------------------- */
14 #include <linux/tty.h>
15 #include <linux/types.h>
17 #define BUILDING_DEVPTS 1
18 #include <linux/devpts_fs.h>
20 struct devpts_sb_info {
28 unsigned int max_ptys;
29 struct inode **inodes;
32 #define DEVPTS_SUPER_MAGIC 0x1cd1
33 #define DEVPTS_SBI_MAGIC 0x01da1d02
35 extern inline struct devpts_sb_info *SBI(struct super_block *sb)
37 return (struct devpts_sb_info *)(sb->u.generic_sbp);
40 extern struct inode_operations devpts_root_inode_operations;
41 extern struct file_operations devpts_root_operations;