File: devpts_i.h

package info (click to toggle)
kernel-source-2.4.14 2.4.14-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 139,160 kB
  • ctags: 428,423
  • sloc: ansic: 2,435,554; asm: 141,119; makefile: 8,258; sh: 3,099; perl: 2,561; yacc: 1,177; cpp: 755; tcl: 577; lex: 352; awk: 251; lisp: 218; sed: 72
file content (41 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* -*- linux-c -*- --------------------------------------------------------- *
 *
 * linux/fs/devpts/devpts_i.h
 *
 *  Copyright 1998 H. Peter Anvin -- All Rights Reserved
 *
 * This file is part of the Linux kernel and is made available under
 * the terms of the GNU General Public License, version 2, or at your
 * option, any later version, incorporated herein by reference.
 *
 * ------------------------------------------------------------------------- */

#include <linux/fs.h>
#include <linux/tty.h>
#include <linux/types.h>

#define BUILDING_DEVPTS 1
#include <linux/devpts_fs.h>

struct devpts_sb_info {
	u32 magic;
	int setuid;
	int setgid;
	uid_t   uid;
	gid_t   gid;
	umode_t mode;

	unsigned int max_ptys;
	struct inode **inodes;
};

#define DEVPTS_SUPER_MAGIC 0x1cd1
#define DEVPTS_SBI_MAGIC   0x01da1d02

extern inline struct devpts_sb_info *SBI(struct super_block *sb)
{
	return (struct devpts_sb_info *)(sb->u.generic_sbp);
}

extern struct inode_operations devpts_root_inode_operations;
extern struct file_operations devpts_root_operations;