Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
inode.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/namei.h>
#include <linux/slab.h>
#include <linux/mount.h>
#include <linux/tty.h>
#include <linux/mutex.h>
#include <linux/magic.h>
#include <linux/idr.h>
#include <linux/devpts_fs.h>
#include <linux/parser.h>
#include <linux/fsnotify.h>
#include <linux/seq_file.h>

Go to the source code of this file.

Data Structures

struct  pts_mount_opts
 
struct  pts_fs_info
 

Macros

#define DEVPTS_DEFAULT_MODE   0600
 
#define DEVPTS_DEFAULT_PTMX_MODE   0000
 
#define PTMX_MINOR   2
 
#define PARSE_MOUNT   0
 
#define PARSE_REMOUNT   1
 

Enumerations

enum  {
  Opt_uid, Opt_gid, Opt_mode, Opt_ptmxmode,
  Opt_newinstance, Opt_max, Opt_err
}
 

Functions

int devpts_new_index (struct inode *ptmx_inode)
 
void devpts_kill_index (struct inode *ptmx_inode, int idx)
 
int devpts_pty_new (struct inode *ptmx_inode, struct tty_struct *tty)
 
struct tty_structdevpts_get_tty (struct inode *pts_inode, int number)
 
void devpts_pty_kill (struct tty_struct *tty)
 

Macro Definition Documentation

#define DEVPTS_DEFAULT_MODE   0600

Definition at line 29 of file inode.c.

#define DEVPTS_DEFAULT_PTMX_MODE   0000

Definition at line 36 of file inode.c.

#define PARSE_MOUNT   0

Definition at line 146 of file inode.c.

#define PARSE_REMOUNT   1

Definition at line 147 of file inode.c.

#define PTMX_MINOR   2

Definition at line 37 of file inode.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_uid 
Opt_gid 
Opt_mode 
Opt_ptmxmode 
Opt_newinstance 
Opt_max 
Opt_err 

Definition at line 109 of file inode.c.

Function Documentation

struct tty_struct* devpts_get_tty ( struct inode pts_inode,
int  number 
)
read

Definition at line 596 of file inode.c.

void devpts_kill_index ( struct inode ptmx_inode,
int  idx 
)

Definition at line 537 of file inode.c.

int devpts_new_index ( struct inode ptmx_inode)

Definition at line 501 of file inode.c.

void devpts_pty_kill ( struct tty_struct tty)

Definition at line 617 of file inode.c.

int devpts_pty_new ( struct inode ptmx_inode,
struct tty_struct tty 
)

Definition at line 548 of file inode.c.