Lines Matching refs:new
32 static PTM_DRIVER: Lazy<Arc<TtyDriver>> = Lazy::new();
33 static PTS_DRIVER: Lazy<Arc<TtyDriver>> = Lazy::new();
102 let other_tty = TtyCore::new(other_driver.clone(), core.index()); in pty_common_install()
105 let port0: Arc<dyn TtyPort> = Arc::new(DefaultTtyPort::new()); in pty_common_install()
106 let port1: Arc<dyn TtyPort> = Arc::new(DefaultTtyPort::new()); in pty_common_install()
175 UserBufferReader::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_set_lock()
188 UserBufferWriter::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_get_lock()
195 UserBufferReader::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_set_packet_mode()
212 UserBufferWriter::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_get_packet_mode()
223 let idt = IdTable::new( in unix98pty_init()
225 Some(DeviceNumber::new(Major::TTYAUX_MAJOR, 2)), in unix98pty_init()
227 let ptmx_dev = TtyDevice::new( in unix98pty_init()
247 let mut ptm_driver = TtyDriver::new( in pty_init()
255 Arc::new(Unix98PtyDriverInner::new()), in pty_init()
268 let mut pts_driver = TtyDriver::new( in pty_init()
276 Arc::new(Unix98PtyDriverInner::new()), in pty_init()