Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187299
b: refs/heads/master
c: b3e63af
h: refs/heads/master
i:
  187297: b221a6e
  187295: 67c4e2e
v: v3
  • Loading branch information
Rodolfo Giometti authored and Linus Torvalds committed Mar 12, 2010
1 parent 445ffca commit 69bb62f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 697fb85fcf21b5229a3072440222d14b05ef2abe
refs/heads/master: b3e63afe8a74c0134d05a551cc74facc3b3ec0d7
4 changes: 4 additions & 0 deletions trunk/Documentation/serial/tty.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ write_wakeup() - May be called at any point between open and close.
is permitted to call the driver write method from
this function. In such a situation defer it.

dcd_change() - Report to the tty line the current DCD pin status
changes and the relative timestamp. The timestamp
can be NULL.


Driver Access

Expand Down
8 changes: 8 additions & 0 deletions trunk/include/linux/tty_ldisc.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@
* cease I/O to the tty driver. Can sleep. The driver should
* seek to perform this action quickly but should wait until
* any pending driver I/O is completed.
*
* void (*dcd_change)(struct tty_struct *tty, unsigned int status,
* struct timespec *ts)
*
* Tells the discipline that the DCD pin has changed its status and
* the relative timestamp. Pointer ts can be NULL.
*/

#include <linux/fs.h>
Expand Down Expand Up @@ -136,6 +142,8 @@ struct tty_ldisc_ops {
void (*receive_buf)(struct tty_struct *, const unsigned char *cp,
char *fp, int count);
void (*write_wakeup)(struct tty_struct *);
void (*dcd_change)(struct tty_struct *, unsigned int,
struct timespec *);

struct module *owner;

Expand Down

0 comments on commit 69bb62f

Please sign in to comment.