Home
last modified time | relevance | path

Searched refs:PollFd (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/nix/src/
Dpoll.rs21 pub struct PollFd { struct
25 impl PollFd { implementation
28 pub fn new(fd: RawFd, events: PollFlags) -> PollFd { in new() argument
29 PollFd { in new()
118 pub fn poll(fds: &mut [PollFd], timeout: libc::c_int) -> Result<libc::c_int> { in poll() argument
137 pub fn ppoll(fds: &mut [PollFd], timeout: Option<TimeSpec>, sigmask: SigSet) -> Result<libc::c_int>… in ppoll() argument
/external/rust/crates/nix/test/
Dtest_poll.rs4 poll::{PollFlags, poll, PollFd},
23 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_poll()
53 let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; in test_ppoll()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/X86/
DX86Counter.cpp46 struct pollfd PollFd; in pollLbrPerfEvent() local
47 PollFd.fd = FileDescriptor; in pollLbrPerfEvent()
48 PollFd.events = POLLIN; in pollLbrPerfEvent()
49 PollFd.revents = 0; in pollLbrPerfEvent()
50 return poll(&PollFd, 1 /* num of fds */, 10000 /* timeout in ms */); in pollLbrPerfEvent()
/external/rust/crates/nix/
DCHANGELOG.md143 - `PollFd`, `EpollEvent`, `IpMembershipRequest`, `Ipv6MembershipRequest`,
276 `Uid::is_root`, `Uid::as_raw`, `Pid::as_raw`, and `PollFd::revents` now take
381 - `PollFd` event flags renamed to `PollFlags` ([#1024](https://github.com/nix-rust/nix/pull/1024/))
734 - Removed `revents` argument from `PollFd::new()` as it's an output argument and
922 - Added constructor method `new()` to `PollFd` in `::nix::poll`, in order to
925 - Added method `revents()` to `PollFd` in `::nix::poll`, in order to provide
959 - Removed public fields from `PollFd` in `::nix::poll`. (See also added method