diff options
Diffstat (limited to 'include/linux/devpts_fs.h')
| -rw-r--r-- | include/linux/devpts_fs.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/devpts_fs.h b/include/linux/devpts_fs.h index 5ce0e5fd712e..251a2090a554 100644 --- a/include/linux/devpts_fs.h +++ b/include/linux/devpts_fs.h | |||
| @@ -20,28 +20,28 @@ | |||
| 20 | int devpts_new_index(struct inode *ptmx_inode); | 20 | int devpts_new_index(struct inode *ptmx_inode); |
| 21 | void devpts_kill_index(struct inode *ptmx_inode, int idx); | 21 | void devpts_kill_index(struct inode *ptmx_inode, int idx); |
| 22 | /* mknod in devpts */ | 22 | /* mknod in devpts */ |
| 23 | int devpts_pty_new(struct inode *ptmx_inode, struct tty_struct *tty); | 23 | struct inode *devpts_pty_new(struct inode *ptmx_inode, dev_t device, int index, |
| 24 | /* get tty structure */ | 24 | void *priv); |
| 25 | struct tty_struct *devpts_get_tty(struct inode *pts_inode, int number); | 25 | /* get private structure */ |
| 26 | void *devpts_get_priv(struct inode *pts_inode); | ||
| 26 | /* unlink */ | 27 | /* unlink */ |
| 27 | void devpts_pty_kill(struct tty_struct *tty); | 28 | void devpts_pty_kill(struct inode *inode); |
| 28 | 29 | ||
| 29 | #else | 30 | #else |
| 30 | 31 | ||
| 31 | /* Dummy stubs in the no-pty case */ | 32 | /* Dummy stubs in the no-pty case */ |
| 32 | static inline int devpts_new_index(struct inode *ptmx_inode) { return -EINVAL; } | 33 | static inline int devpts_new_index(struct inode *ptmx_inode) { return -EINVAL; } |
| 33 | static inline void devpts_kill_index(struct inode *ptmx_inode, int idx) { } | 34 | static inline void devpts_kill_index(struct inode *ptmx_inode, int idx) { } |
| 34 | static inline int devpts_pty_new(struct inode *ptmx_inode, | 35 | static inline struct inode *devpts_pty_new(struct inode *ptmx_inode, |
| 35 | struct tty_struct *tty) | 36 | dev_t device, int index, void *priv) |
| 36 | { | 37 | { |
| 37 | return -EINVAL; | 38 | return ERR_PTR(-EINVAL); |
| 38 | } | 39 | } |
| 39 | static inline struct tty_struct *devpts_get_tty(struct inode *pts_inode, | 40 | static inline void *devpts_get_priv(struct inode *pts_inode) |
| 40 | int number) | ||
| 41 | { | 41 | { |
| 42 | return NULL; | 42 | return NULL; |
| 43 | } | 43 | } |
| 44 | static inline void devpts_pty_kill(struct tty_struct *tty) { } | 44 | static inline void devpts_pty_kill(struct inode *inode) { } |
| 45 | 45 | ||
| 46 | #endif | 46 | #endif |
| 47 | 47 | ||
