MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tty_init_termios

Function tty_init_termios

freebsd/kern/tty.c:902–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

900};
901
902static void
903tty_init_termios(struct tty *tp)
904{
905 struct termios *t = &tp->t_termios_init_in;
906
907 t->c_cflag = TTYDEF_CFLAG;
908 t->c_iflag = TTYDEF_IFLAG;
909 t->c_lflag = TTYDEF_LFLAG;
910 t->c_oflag = TTYDEF_OFLAG;
911 t->c_ispeed = TTYDEF_SPEED;
912 t->c_ospeed = TTYDEF_SPEED;
913 memcpy(&t->c_cc, ttydefchars, sizeof ttydefchars);
914
915 tp->t_termios_init_out = *t;
916}
917
918void
919tty_init_console(struct tty *tp, speed_t s)

Callers 1

tty_alloc_mutexFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected