可以使用如下代码:
struct uart_state *state = tty->driver_data; struct uart_port *port = state->port; 类似的,由 uart_port 得到tty_struct 则使用如下方法:
struct tty_struct *tty = port.info->port.tty;
Powered by: 博客园 Copyright © 2024 cornflower Powered by .NET 8.0 on Kubernetes