Refactor tty driver using the work queue

This commit is contained in:
Chuandong Li
2023-10-08 16:04:18 +00:00
committed by Tate, Hongliang Tian
parent 7419f6b56b
commit d28f0db419
3 changed files with 74 additions and 22 deletions

View File

@ -25,7 +25,7 @@ pub struct Tty {
/// tty_name
name: CString,
/// line discipline
ldisc: LineDiscipline,
ldisc: Arc<LineDiscipline>,
/// driver
driver: SpinLock<Weak<TtyDriver>>,
}