diff options
Diffstat (limited to 'include/linux/devpts_fs.h')
| -rw-r--r-- | include/linux/devpts_fs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/devpts_fs.h b/include/linux/devpts_fs.h index 277ab9af9ac2..100cb4343763 100644 --- a/include/linux/devpts_fs.h +++ b/include/linux/devpts_fs.h | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | struct pts_fs_info; | 20 | struct pts_fs_info; |
| 21 | 21 | ||
| 22 | struct vfsmount *devpts_mntget(struct file *, struct pts_fs_info *); | ||
| 22 | struct pts_fs_info *devpts_acquire(struct file *); | 23 | struct pts_fs_info *devpts_acquire(struct file *); |
| 23 | void devpts_release(struct pts_fs_info *); | 24 | void devpts_release(struct pts_fs_info *); |
| 24 | 25 | ||
| @@ -32,6 +33,15 @@ void *devpts_get_priv(struct dentry *); | |||
| 32 | /* unlink */ | 33 | /* unlink */ |
| 33 | void devpts_pty_kill(struct dentry *); | 34 | void devpts_pty_kill(struct dentry *); |
| 34 | 35 | ||
| 36 | /* in pty.c */ | ||
| 37 | int ptm_open_peer(struct file *master, struct tty_struct *tty, int flags); | ||
| 38 | |||
| 39 | #else | ||
| 40 | static inline int | ||
| 41 | ptm_open_peer(struct file *master, struct tty_struct *tty, int flags) | ||
| 42 | { | ||
| 43 | return -EIO; | ||
| 44 | } | ||
| 35 | #endif | 45 | #endif |
| 36 | 46 | ||
| 37 | 47 | ||
