Lines Matching refs:minor
99 * Note that vtdaemon is running on /dev/vt/1 (minor=1),
105 #define VT_IS_DAEMON(minor) ((minor) == VT_DAEMON_MINOR)
131 static uint_t vt_minor2arg(minor_t minor);
210 * Shouldn't allow to shrink the max vt minor to be smaller than
211 * the max in used minor.
244 * B_TRUE: the vt designated by argument 'minor' is being closed.
245 * B_FALSE: the vt designated by argument 'minor' has been activated just now.
248 vc_waitactive_reply(int minor, boolean_t close)
259 if ((close && tmp->wa_msg_minor == minor) ||
260 (!close && tmp->wa_wait_minor == minor)) {
308 * minor 0: /dev/vt/0 (index = 0, indicating the system console)
309 * minor 1: /dev/vt/1 (index = 1, vtdaemon special console)
310 * minor 2: /dev/vt/2 (index = 2, virtual consoles)
312 * minor n: /dev/vt/n (index = n)
315 * The system console (minor 0), is opened firstly and used during console
319 * In tipline case, minor 0 (/dev/vt/0) is reserved, and cannot be switched to.
323 * minor 1 (/dev/vt/1) is reserved for vtdaemon special console, and it's
335 vt_open(minor_t minor, queue_t *rq, cred_t *crp)
339 if (!vt_minor_valid(minor))
342 pvc = vt_minor2vc(minor);
364 if (vc_active_console == VT_MINOR_INVALID && minor != VT_DAEMON_MINOR)
365 if (minor == 0 || consmode == CONS_KFB) {
368 vc_active_console = minor;
369 vc_last_console = minor;
370 if (minor != 0) {
389 if (minor > vc_inuse_max_minor)
390 vc_inuse_max_minor = minor;
488 vt_validate_hotkeys(int minor)
491 * minor should not succeed the existing minor numbers range.
493 if (!vt_minor_valid(minor))
499 if (!VT_IS_DAEMON(minor) && VT_IS_INUSE(minor))
529 minor_t minor = 0;
542 minor = vt_find_prev(vt_arg2minor(vc_target_console));
546 minor = vt_find_prev(vc_active_console);
554 minor = vt_find_next(vt_arg2minor(vc_target_console));
558 minor = vt_find_next(vc_active_console);
562 minor = VT_MSG_VTNO(mp);
565 if (minor == 1)
566 minor = 0;
570 if ((minor = vc_last_console) == VT_MINOR_INVALID)
577 if (!vt_validate_hotkeys(minor))
582 * vt_activate is 1, though its minor is 0
584 if (minor == 0)
587 vtno = minor;
758 vt_minor2arg(minor_t minor)
760 if (minor == 0)
763 if (VT_IS_DAEMON(minor)) {
768 return (minor);
775 minor_t minor;
777 minor = vt_arg2minor(vt_no);
778 if (!vt_minor_valid(minor))
780 if (minor == vc_active_console) {
781 if (VT_IS_DAEMON(minor)) {
797 if (minor == 0 && consconfig_console_is_tipline())
800 if (!VT_IS_INUSE(minor))
803 pvc = vt_minor2vc(minor);
813 return (vt_switch(minor, credp));
834 pvc->vc_switchto = minor;
879 int minor;
931 for (minor = 2; vt_minor_valid(minor); minor++)
932 if (!VT_IS_INUSE(minor))
935 if (!vt_minor_valid(minor))
936 minor = -1;
937 *(int *)(void *)tmp->b_rptr = minor; /* /dev/vt/minor */
1036 * not minor.
1042 for (minor = 2; minor < 16; minor++) {
1043 pvc = vt_minor2vc(minor);
1046 if (VT_IS_INUSE(minor))
1070 case VT_GETACTIVE: /* get real active console (minor) */
1247 * Get vc state from minor.
1254 vt_minor2vc(minor_t minor)
1259 if (minor != VT_ACTIVE) {
1260 target.vc_minor = minor;
1273 vt_state_init(vc_state_t *vcptr, minor_t minor)
1292 vcptr->vc_minor = minor;