[][src]Struct sunrise_libuser::ahci::IDiskProxy

pub struct IDiskProxy(ClientSession);

Interface to an AHCI device.

It can:

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]

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 range 0..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 range 0..IDisk.sector_count().

Trait Implementations

impl Debug for IDiskProxy[src]

impl From<ClientSession> for IDiskProxy[src]

impl From<IDiskProxy> for 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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.