.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "TTY_LDISC_TRY" "9" "09 October 2005" "" "" .SH NAME tty_ldisc_try \- internal helper .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int tty_ldisc_try (struct tty_struct * \fItty\fB); \fR .SH "ARGUMENTS" .TP \fB\fItty\fB\fR the tty .SH "DESCRIPTION" .PP Make a single attempt to grab and bump the refcount on the tty ldisc. Return 0 on failure or 1 on success. This is used to implement both the waiting and non waiting versions of tty_ldisc_ref