/// Allocate a new, empty epoll object.
Allocate a new, empty epoll object.
Allocate a new empty epoll object .
pub fn new(kernel: &Kernel) -> FileHandle {
        Anon::new_file(
            anon_fs(kernel),
            Box::new(EpollFileObject {
                waiter: Waiter::new(),
                wait_objects: RwLock::new(HashMap::default()),
                trigger_list: Arc::new(Mutex::new(VecDeque::new())),
                rearm_list: Arc::new(Mutex::new(Vec::new())),
            }),
            OpenFlags::RDWR,
        )
    }
pub fn new ( kernel : & Kernel ) -> FileHandle { Anon :: new_file ( anon_fs ( kernel ) , Box :: new ( EpollFileObject { waiter : Waiter :: new ( ) , wait_objects : RwLock :: new ( HashMap :: default ( ) ) , trigger_list : Arc :: new ( Mutex :: new ( VecDeque :: new ( ) ) ) , rearm_list : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) , } ) , OpenFlags :: RDWR , ) }
Allocate a new, empty epoll object.
Allocate a new empty epoll object .
kernel
&Kernel