|
@@ -21,8 +21,8 @@ int devpts_new_index(struct inode *ptmx_inode);
|
|
|
void devpts_kill_index(struct inode *ptmx_inode, int idx);
|
|
|
/* mknod in devpts */
|
|
|
int devpts_pty_new(struct inode *ptmx_inode, struct tty_struct *tty);
|
|
|
-/* get tty structure */
|
|
|
-struct tty_struct *devpts_get_tty(struct inode *pts_inode, int number);
|
|
|
+/* get private structure */
|
|
|
+void *devpts_get_priv(struct inode *pts_inode);
|
|
|
/* unlink */
|
|
|
void devpts_pty_kill(struct tty_struct *tty);
|
|
|
|
|
@@ -36,8 +36,7 @@ static inline int devpts_pty_new(struct inode *ptmx_inode,
|
|
|
{
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
-static inline struct tty_struct *devpts_get_tty(struct inode *pts_inode,
|
|
|
- int number)
|
|
|
+static inline void *devpts_get_priv(struct inode *pts_inode)
|
|
|
{
|
|
|
return NULL;
|
|
|
}
|