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.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 67d64e6efe7a..c7ea9bc8897c 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -50,6 +50,7 @@
50#define N_V253 19 /* Codec control over voice modem */ 50#define N_V253 19 /* Codec control over voice modem */
51#define N_CAIF 20 /* CAIF protocol for talking to modems */ 51#define N_CAIF 20 /* CAIF protocol for talking to modems */
52#define N_GSM0710 21 /* GSM 0710 Mux */ 52#define N_GSM0710 21 /* GSM 0710 Mux */
53#define N_TI_WL 22 /* for TI's WL BT, FM, GPS combo chips */
53 54
54/* 55/*
55 * This character is the same as _POSIX_VDISABLE: it cannot be used as 56 * This character is the same as _POSIX_VDISABLE: it cannot be used as
@@ -256,6 +257,7 @@ struct tty_operations;
256struct tty_struct { 257struct tty_struct {
257 int magic; 258 int magic;
258 struct kref kref; 259 struct kref kref;
260 struct device *dev;
259 struct tty_driver *driver; 261 struct tty_driver *driver;
260 const struct tty_operations *ops; 262 const struct tty_operations *ops;
261 int index; 263 int index;
@@ -465,7 +467,7 @@ extern void proc_clear_tty(struct task_struct *p);
465extern struct tty_struct *get_current_tty(void); 467extern struct tty_struct *get_current_tty(void);
466extern void tty_default_fops(struct file_operations *fops); 468extern void tty_default_fops(struct file_operations *fops);
467extern struct tty_struct *alloc_tty_struct(void); 469extern struct tty_struct *alloc_tty_struct(void);
468extern void tty_add_file(struct tty_struct *tty, struct file *file); 470extern int tty_add_file(struct tty_struct *tty, struct file *file);
469extern void free_tty_struct(struct tty_struct *tty); 471extern void free_tty_struct(struct tty_struct *tty);
470extern void initialize_tty_struct(struct tty_struct *tty, 472extern void initialize_tty_struct(struct tty_struct *tty,
471 struct tty_driver *driver, int idx); 473 struct tty_driver *driver, int idx);
@@ -539,8 +541,8 @@ extern void tty_audit_exit(void);
539extern void tty_audit_fork(struct signal_struct *sig); 541extern void tty_audit_fork(struct signal_struct *sig);
540extern void tty_audit_tiocsti(struct tty_struct *tty, char ch); 542extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
541extern void tty_audit_push(struct tty_struct *tty); 543extern void tty_audit_push(struct tty_struct *tty);
542extern void tty_audit_push_task(struct task_struct *tsk, 544extern int tty_audit_push_task(struct task_struct *tsk,
543 uid_t loginuid, u32 sessionid); 545 uid_t loginuid, u32 sessionid);
544#else 546#else
545static inline void tty_audit_add_data(struct tty_struct *tty, 547static inline void tty_audit_add_data(struct tty_struct *tty,
546 unsigned char *data, size_t size) 548 unsigned char *data, size_t size)
@@ -558,9 +560,10 @@ static inline void tty_audit_fork(struct signal_struct *sig)
558static inline void tty_audit_push(struct tty_struct *tty) 560static inline void tty_audit_push(struct tty_struct *tty)
559{ 561{
560} 562}
561static inline void tty_audit_push_task(struct task_struct *tsk, 563static inline int tty_audit_push_task(struct task_struct *tsk,
562 uid_t loginuid, u32 sessionid) 564 uid_t loginuid, u32 sessionid)
563{ 565{
566 return 0;
564} 567}
565#endif 568#endif
566 569