.TH "PROC_CONSOLE" 9 "PROC_CONSOLE" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME PROC_CONSOLE \- find the attached tty or visible console .SH SYNOPSIS .B "int" PROC_CONSOLE .BI "(const struct fb_info *" info ");" .SH ARGUMENTS .IP "info" 12 frame buffer info structure .SH "DESCRIPTION" Finds the tty attached to the process or visible console if the process is not directly attached to a tty (e.g. remote user) for device \fIinfo\fP. Returns -1 errno on error, or tty/visible console number on success.