diff options
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 11 |
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); | |||
309 | extern int tty_ioctl(struct inode *inode, struct file *file, unsigned int cmd, | 309 | extern int tty_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
310 | unsigned long arg); | 310 | unsigned long arg); |
311 | 311 | ||
312 | extern dev_t tty_devnum(struct tty_struct *tty); | ||
313 | extern void proc_clear_tty(struct task_struct *p); | ||
314 | extern void __proc_set_tty(struct task_struct *tsk, struct tty_struct *tty); | ||
315 | extern void proc_set_tty(struct task_struct *tsk, struct tty_struct *tty); | ||
316 | extern struct tty_struct *get_current_tty(void); | ||
317 | |||
312 | extern struct mutex tty_mutex; | 318 | extern struct mutex tty_mutex; |
313 | 319 | ||
314 | /* n_tty.c */ | 320 | /* n_tty.c */ |
@@ -335,10 +341,5 @@ extern void console_print(const char *); | |||
335 | extern int vt_ioctl(struct tty_struct *tty, struct file * file, | 341 | extern 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 | ||
338 | static 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 |