.. SPDX-License-Identifier: GPL-2.0 ========== TTY Buffer ========== .. contents:: :local: Here, we document functions for taking care of tty buffer and their flipping. Drivers are supposed to fill the buffer by one of those functions below and then flip the buffer, so that the data are passed to :doc:`line discipline ` for further processing. Flip Buffer Management ====================== .. kernel-doc:: drivers/tty/tty_buffer.c :identifiers: tty_prepare_flip_string tty_insert_flip_string_fixed_flag tty_insert_flip_string_flags __tty_insert_flip_char tty_flip_buffer_push tty_ldisc_receive_buf ---- Other Functions =============== .. kernel-doc:: drivers/tty/tty_buffer.c :identifiers: tty_buffer_space_avail tty_buffer_set_limit ---- Buffer Locking ============== These are used only in special circumstances. Avoid them. .. kernel-doc:: drivers/tty/tty_buffer.c :identifiers: tty_buffer_lock_exclusive tty_buffer_unlock_exclusive ---- Internal Functions ================== .. kernel-doc:: drivers/tty/tty_buffer.c :internal: it this file 'description' to name the repository.Russell King
summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2020-02-17 13:27:58 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-17 14:30:54 -0800
commitbd706ff8ea2b6e2d3f21f0863b2fc42f860f8ba2 (patch)
treeea4e9fd226dcaec59d14d0b17b6998982bdb69c3 /include/net
parent3e07df430c2b4ffe003085a0b3e6b0b041187632 (diff)
net: vlan: suppress "failed to kill vid" warnings
When a real dev unregisters, vlan_device_event() also unregisters all of its vlan interfaces. For each VID this ends up in __vlan_vid_del(), which attempts to remove the VID from the real dev's VLAN filter. But the unregistering real dev might no longer be able to issue the required IOs, and return an error. Subsequently we raise a noisy warning msg that is not appropriate for this situation: the real dev is being torn down anyway, there shouldn't be any worry about cleanly releasing all of its HW-internal resources. So to avoid scaring innocent users, suppress this warning when the failed deletion happens on an unregistering device. While at it also convert the raw pr_warn() to a more fitting netdev_warn(). Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')