/external/rust/crates/tokio/src/io/ |
D | async_fd.rs | 5 use std::os::unix::io::{AsRawFd, RawFd}; 139 pub struct AsyncFd<T: AsRawFd> { 150 pub struct AsyncFdReadyGuard<'a, T: AsRawFd> { 161 pub struct AsyncFdReadyMutGuard<'a, T: AsRawFd> { 168 impl<T: AsRawFd> AsyncFd<T> { 177 T: AsRawFd, in new() 187 T: AsRawFd, in with_interest() 221 let fd = self.inner.as_ref().map(AsRawFd::as_raw_fd); in take_inner() 462 impl<T: AsRawFd> AsRawFd for AsyncFd<T> { 468 impl<T: std::fmt::Debug + AsRawFd> std::fmt::Debug for AsyncFd<T> { [all …]
|
/external/crosvm/sys_util/src/ |
D | poll.rs | 11 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 318 pub fn build_with(fd_tokens: &[(&dyn AsRawFd, T)]) -> Result<EpollContext<T>> { in build_with() argument 329 pub fn add_many(&self, fd_tokens: &[(&dyn AsRawFd, T)]) -> Result<()> { in add_many() argument 342 pub fn add(&self, fd: &dyn AsRawFd, token: T) -> Result<()> { in add() argument 354 fd: &dyn AsRawFd, in add_fd_with_events() argument 380 pub fn modify(&self, fd: &dyn AsRawFd, events: WatchingEvents, token: T) -> Result<()> { in modify() argument 407 pub fn delete(&self, fd: &dyn AsRawFd) -> Result<()> { in delete() 485 impl<T: PollToken> AsRawFd for EpollContext<T> { 550 pub fn build_with(fd_tokens: &[(&dyn AsRawFd, T)]) -> Result<PollContext<T>> { in build_with() argument 561 pub fn add_many(&self, fd_tokens: &[(&dyn AsRawFd, T)]) -> Result<()> { in add_many() argument [all …]
|
D | descriptor.rs | 11 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 42 pub fn clone_fd(fd: &dyn AsRawFd) -> Result<RawFd> { in clone_fd() 113 impl AsRawFd for SafeDescriptor { 119 impl TryFrom<&dyn AsRawFd> for SafeDescriptor { 122 fn try_from(fd: &dyn AsRawFd) -> std::result::Result<Self, Self::Error> { in try_from() 171 impl AsRawFd for Descriptor {
|
D | ioctl.rs | 12 use std::os::unix::io::AsRawFd; 152 pub unsafe fn ioctl<F: AsRawFd>(fd: &F, nr: IoctlNr) -> c_int { in ioctl() 157 pub unsafe fn ioctl_with_val<F: AsRawFd>(fd: &F, nr: IoctlNr, arg: c_ulong) -> c_int { in ioctl_with_val() 162 pub unsafe fn ioctl_with_ref<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: &T) -> c_int { in ioctl_with_ref() argument 167 pub unsafe fn ioctl_with_mut_ref<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: &mut T) -> c_int { in ioctl_with_mut_ref() argument 172 pub unsafe fn ioctl_with_ptr<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: *const T) -> c_int { in ioctl_with_ptr() argument 177 pub unsafe fn ioctl_with_mut_ptr<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: *mut T) -> c_int { in ioctl_with_mut_ptr() argument
|
D | mmap.rs | 12 use std::os::unix::io::AsRawFd; 158 _fd: &dyn AsRawFd, in add_fd_mapping() argument 242 pub fn from_fd(fd: &dyn AsRawFd, size: usize) -> Result<MemoryMapping> { in from_fd() argument 246 pub fn from_fd_offset(fd: &dyn AsRawFd, size: usize, offset: u64) -> Result<MemoryMapping> { in from_fd_offset() argument 259 fd: &dyn AsRawFd, in from_fd_offset_flags() argument 280 fd: &dyn AsRawFd, in from_fd_offset_protection() argument 295 fd: &dyn AsRawFd, in from_fd_offset_protection_populate() argument 351 fd: &dyn AsRawFd, in from_fd_offset_protection_fixed() argument 372 fd: Option<(&dyn AsRawFd, u64)>, in try_mmap() argument 598 src: &dyn AsRawFd, in read_to_memory() argument [all …]
|
D | raw_fd.rs | 9 use std::os::unix::io::{AsRawFd, RawFd}; 12 impl AsRawFd for Fd {
|
D | file_flags.rs | 5 use std::os::unix::io::AsRawFd; 19 pub fn from_file(file: &dyn AsRawFd) -> Result<FileFlags> { in from_file()
|
D | lib.rs | 98 use std::os::unix::io::{AsRawFd, FromRawFd, RawFd}; 211 pub fn flock(file: &dyn AsRawFd, op: FlockOperation, nonblocking: bool) -> Result<()> { in flock() argument 241 file: &dyn AsRawFd, in fallocate() argument 420 pub fn poll_in(fd: &dyn AsRawFd) -> bool { in poll_in()
|
/external/crosvm/cros_async/src/ |
D | io_ext.rs | 19 use std::os::unix::io::AsRawFd; 116 pub trait IntoAsync: AsRawFd {} 126 use std::os::unix::io::AsRawFd; 237 async fn go<F: AsRawFd>(async_source: Box<dyn IoSourceExt<F>>) { in readvec() 260 async fn go<F: AsRawFd>(async_source: Box<dyn IoSourceExt<F>>) { in writevec() 282 async fn go<F: AsRawFd>(async_source: Box<dyn IoSourceExt<F>>) { in readmem() 322 async fn go<F: AsRawFd>(async_source: Box<dyn IoSourceExt<F>>) { in writemem() 363 async fn go<F: AsRawFd>(source: Box<dyn IoSourceExt<F>>) -> u64 { in read_eventfds() 384 async fn go<F: AsRawFd>(source: Box<dyn IoSourceExt<F>>) { in fsync()
|
D | poll_source.rs | 10 use std::os::unix::io::AsRawFd; 51 impl<F: AsRawFd> PollSource<F> { 65 impl<F: AsRawFd> Deref for PollSource<F> { 73 impl<F: AsRawFd> DerefMut for PollSource<F> { 80 impl<F: AsRawFd> ReadAsync for PollSource<F> { 185 impl<F: AsRawFd> WriteAsync for PollSource<F> { 285 impl<F: AsRawFd> IoSourceExt<F> for PollSource<F> {
|
D | uring_source.rs | 8 use std::os::unix::io::AsRawFd; 41 pub struct UringSource<F: AsRawFd> { 46 impl<F: AsRawFd> UringSource<F> { 63 impl<F: AsRawFd> crate::ReadAsync for UringSource<F> { 143 impl<F: AsRawFd> crate::WriteAsync for UringSource<F> { 201 impl<F: AsRawFd> crate::IoSourceExt<F> for UringSource<F> { 218 impl<F: AsRawFd> Deref for UringSource<F> { 226 impl<F: AsRawFd> DerefMut for UringSource<F> { 235 use std::os::unix::io::AsRawFd; 312 async fn read_u64<T: AsRawFd>(source: &UringSource<T>) -> u64 { in read_u64()
|
/external/crosvm/base/src/ |
D | async_types.rs | 7 use std::os::unix::io::{AsRawFd, RawFd}; 17 impl<T> AsRawFd for DescriptorAdapter<T>
|
/external/rust/crates/tokio/src/net/unix/ |
D | ucred.rs | 61 use std::os::unix::io::AsRawFd; in get_peer_cred() 112 use std::os::unix::io::AsRawFd; 144 use std::os::unix::io::AsRawFd; 187 use std::os::unix::io::AsRawFd;
|
D | listener.rs | 7 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 175 impl AsRawFd for UnixListener {
|
/external/libchromeos-rs/src/ |
D | read_dir.rs | 8 use std::os::unix::io::AsRawFd; 38 impl<'d, D: AsRawFd> ReadDir<'d, D> { 100 pub fn read_dir<D: AsRawFd>(dir: &mut D, offset: libc::off64_t) -> io::Result<ReadDir<D>> { in read_dir()
|
/external/crosvm/fuse/src/ |
D | fuzzing.rs | 9 use std::os::unix::io::AsRawFd; 32 _fd: &dyn AsRawFd, in map() argument
|
/external/rust/crates/nix/src/ |
D | kmod.rs | 7 use std::os::unix::io::AsRawFd; 83 pub fn finit_module<T: AsRawFd>(fd: &T, param_values: &CStr, flags: ModuleInitFlags) -> Result<()> { in finit_module()
|
/external/rust/crates/mio/src/ |
D | poll.rs | 4 use std::os::unix::io::{AsRawFd, RawFd}; 362 impl AsRawFd for Poll { 640 impl AsRawFd for Registry {
|
/external/rust/crates/mio/src/sys/shell/ |
D | selector.rs | 3 use std::os::unix::io::{AsRawFd, RawFd}; 57 impl AsRawFd for Selector {
|
/external/adhd/cras/client/libcras/src/ |
D | cras_server_socket.rs | 4 use std::os::unix::io::{AsRawFd, RawFd}; 120 impl AsRawFd for CrasServerSocket {
|
/external/rust/crates/mio/src/net/uds/ |
D | listener.rs | 5 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 88 impl AsRawFd for UnixListener {
|
/external/rust/crates/same-file/src/ |
D | unix.rs | 5 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 36 impl AsRawFd for crate::Handle {
|
/external/rust/crates/tokio/src/process/unix/ |
D | mod.rs | 44 use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; 173 impl AsRawFd for Pipe { 219 fn set_nonblocking<T: AsRawFd>(fd: &mut T, nonblocking: bool) -> io::Result<()> { in set_nonblocking()
|
/external/rust/crates/tokio/tests/ |
D | io_async_fd.rs | 4 use std::os::unix::io::{AsRawFd, RawFd}; 68 impl AsRawFd for FileDescriptor { 261 impl<T: AsRawFd> AsRawFd for ArcFd<T> { 546 async fn poll_readable<T: AsRawFd>(fd: &AsyncFd<T>) -> std::io::Result<AsyncFdReadyGuard<'_, T>> { in poll_readable() 550 async fn poll_writable<T: AsRawFd>(fd: &AsyncFd<T>) -> std::io::Result<AsyncFdReadyGuard<'_, T>> { in poll_writable()
|
/external/rust/crates/nix/src/sys/ |
D | statvfs.rs | 6 use std::os::unix::io::AsRawFd; 137 pub fn fstatvfs<T: AsRawFd>(fd: &T) -> Result<Statvfs> { in fstatvfs()
|