aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r--include/linux/tty.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index f717f0898238..1d29999a3439 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -309,6 +309,12 @@ extern void tty_ldisc_flush(struct tty_struct *tty);
309extern int tty_ioctl(struct inode *inode, struct file *file, unsigned int cmd, 309extern int tty_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
310 unsigned long arg); 310 unsigned long arg);
311 311
312extern dev_t tty_devnum(struct tty_struct *tty);
313extern void proc_clear_tty(struct task_struct *p);
314extern void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty);
315extern void proc_set_tty(struct task_struct *tsk, struct tty_struct *tty);
316extern struct tty_struct *get_current_tty(void);
317
312extern struct mutex tty_mutex; 318extern struct mutex tty_mutex;
313 319
314/* n_tty.c */ 320/* n_tty.c */
@@ -335,10 +341,5 @@ extern void console_print(const char *);
335extern int vt_ioctl(struct tty_struct *tty, struct file * file, 341extern int vt_ioctl(struct tty_struct *tty, struct file * file,
336 unsigned int cmd, unsigned long arg); 342 unsigned int cmd, unsigned long arg);
337 343
338static inline dev_t tty_devnum(struct tty_struct *tty)
339{
340 return MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index;
341}
342
343#endif /* __KERNEL__ */ 344#endif /* __KERNEL__ */
344#endif 345#endif