Import 2.4.0-test2pre7
[davej-history.git] / fs / devpts / devpts_i.h
blobda387ea1a93218c637e0f237636d13edea52889f
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 * ------------------------------------------------------------------------- */
13 #include <linux/fs.h>
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 {
21 u32 magic;
22 int setuid;
23 int setgid;
24 uid_t uid;
25 gid_t gid;
26 umode_t mode;
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;