[−][src]Struct sunrise_libuser::ahci::IDiskProxy
Interface to an AHCI device.
It can:
- get the number of addressable 512-octet sectors on this disk,
- read a range of consecutive sectors.
- write a range of consecutive sectors.
Implementations
impl IDiskProxy
[src]
pub fn clone_current_object(&self) -> Result<Self, Error>
[src]
Clones the current object, returning a new handle. The returned handle has its own IPC buffer - it may be used concurrently with the original.
pub fn sector_count(&self) -> Result<u64, Error>
[src]
Retrieves the number of addressable 512-octet sectors on this disk.
pub fn read_dma(
&self,
address: u64,
unknown_1: &mut [Block]
) -> Result<(), Error>
[src]
&self,
address: u64,
unknown_1: &mut [Block]
) -> Result<(), Error>
Reads sectors from the disk.
This IPC call will invoke the AHCI driver and make it copy sector_count
sectors from the disk
to the memory pointed to by the output buffer.
Error
address..address+sector_count
should be in the range0..IDisk.sector_count()
.
pub fn write_dma(&self, address: u64, blocks: &[Block]) -> Result<(), Error>
[src]
Writes sectors to the disk.
This IPC call will invoke the AHCI driver and make it copy sector_count
sectors to the disk
from the memory pointed to by the input buffer.
Error
address..address+sector_count
should be in the range0..IDisk.sector_count()
.
Trait Implementations
impl Debug for IDiskProxy
[src]
impl From<ClientSession> for IDiskProxy
[src]
fn from(sess: ClientSession) -> IDiskProxy
[src]
impl From<IDiskProxy> for ClientSession
[src]
fn from(sess: IDiskProxy) -> ClientSession
[src]
Auto Trait Implementations
impl RefUnwindSafe for IDiskProxy
impl Send for IDiskProxy
impl Sync for IDiskProxy
impl Unpin for IDiskProxy
impl UnwindSafe for IDiskProxy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,