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

Function ttcompatspeedtab

freebsd/kern/tty_compat.c:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88static int
89ttcompatspeedtab(int speed, struct speedtab *table)
90{
91 if (speed == 0)
92 return (0); /* hangup */
93 for ( ; table->sp_speed > 0; table++)
94 if (table->sp_speed <= speed) /* nearest one, rounded down */
95 return (table->sp_code);
96 return (1); /* 50, min and not hangup */
97}
98
99static int
100ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term)

Callers 2

ttsetcompatFunction · 0.85
tty_ioctl_compatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected