OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [fs/] [devpts/] [devpts_i.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/* -*- linux-c -*- --------------------------------------------------------- *
2
 *
3
 * linux/fs/devpts/devpts_i.h
4
 *
5
 *  Copyright 1998 H. Peter Anvin -- All Rights Reserved
6
 *
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.
10
 *
11
 * ------------------------------------------------------------------------- */
12
 
13
#include <linux/fs.h>
14
#include <linux/tty.h>
15
#include <linux/types.h>
16
 
17
#define BUILDING_DEVPTS 1
18
#include <linux/devpts_fs.h>
19
 
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;
27
 
28
        unsigned int max_ptys;
29
        struct inode **inodes;
30
};
31
 
32
#define DEVPTS_SUPER_MAGIC 0x1cd1
33
#define DEVPTS_SBI_MAGIC   0x01da1d02
34
 
35
extern inline struct devpts_sb_info *SBI(struct super_block *sb)
36
{
37
        return (struct devpts_sb_info *)(sb->u.generic_sbp);
38
}
39
 
40
extern struct inode_operations devpts_root_inode_operations;
41
extern struct file_operations devpts_root_operations;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.