* ALT+CTRL+F2 - Switch Terminal - agetty process
@ 2018-08-09 5:04 Mohit Gupta
0 siblings, 0 replies; only message in thread
From: Mohit Gupta @ 2018-08-09 5:04 UTC (permalink / raw)
To: linux-kernel
I am trying to understand how agetty process is called when
ALT+CTRL+F2/ALT+CTRL+F3/.... keys are pressed in CentOS or in any
other linux distro.
What I know so far
- systemd runs agetty.service with next tty[N] number
- agetty then run login process and then other process continues.
What I want to know
---------------------------
When ALT+CTRL+F2 keys are pressed what happens in kernel?
Looking at keyboard.c seems k_cons is called which calls set_console.
static void k_cons(struct vc_data *vc, unsigned char value, char up_flag)
{
if (up_flag)
return;
set_console(value);
}
I am not sure how set_console triggers agetty with tty2/tty3/tty4 as
one of it's parameter.
Any information will be helpful.
Regards
Mohit
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-09 5:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-09 5:04 ALT+CTRL+F2 - Switch Terminal - agetty process Mohit Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).