if (((termios->c_cflag >> IBSHIFT) & CBAUD) != B0)
ibinput = 1; /* An input speed was specified */
/* If the user asked for a precise weird speed give a precise weird *answer.IftheyaskedforaBfoospeedtheymayhaveproblems *digestingnon-exactrepliessofuzzabit.
*/
if ((termios->c_cflag & CBAUD) == BOTHER) {
oclose = 0; if (!ibinput)
iclose = 0;
} if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER)
iclose = 0;
do { if (obaud - oclose <= baud_table[i] &&
obaud + oclose >= baud_table[i]) {
termios->c_cflag |= baud_bits[i];
ofound = i;
} if (ibaud - iclose <= baud_table[i] &&
ibaud + iclose >= baud_table[i]) { /* For the case input == output don't set IBAUD bits *iftheuserdidn'tdoso.
*/ if (ofound == i && !ibinput) {
ifound = i;
} else {
ifound = i;
termios->c_cflag |= (baud_bits[i] << IBSHIFT);
}
}
} while (++i < n_baud_table);
/* If we found no match then use BOTHER. */ if (ofound == -1)
termios->c_cflag |= BOTHER; /* Set exact input bits only if the input and output differ or the *useralreadydid.
*/ if (ifound == -1 && (ibaud != obaud || ibinput))
termios->c_cflag |= (BOTHER << IBSHIFT);
}
EXPORT_SYMBOL_GPL(tty_termios_encode_baud_rate);
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.