The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/fs/devpts/devpts_i.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* -*- 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;

Cache object: a8e45df6f52a07821759a62e89e5daa2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.