Skip to contentSkip to conversation

tty_flip_buffer

DISCUSSION Alan Cox 1 participant 1 message Nov 18, 2005

lore
Share & tools
lore

Alan Cox

author
#0 lore raw
Quoted 3 lines · V. Ananda Krishnan

tty_insert_flip_string_flags() API? When I looked into the implementation of the tty_insert_flip_string_flags API in tty_io.c, I was little confused.

The flags buffer is used to hold the state of each character. Its usually TTY_NORMAL and is set to TTY_NORMAL by the functions not taking a flag value. It serves the same task as the flag buffer in the old tty_flip.

Quoted 2 lines

Also, can any one explain me the function of the free queue head in the struct tty_bufhead?

Private to the tty layer pointer to allow small buffers as used with byte at a time uarts to be recycled not freed/allocated

Alan