Skip to content

Commit

Permalink
ref(types): change BaoIoRequest virtio_id by dm_id
Browse files Browse the repository at this point in the history
Signed-off-by: João Peixoto <[email protected]>
  • Loading branch information
joaopeixoto13 committed Oct 14, 2024
1 parent acb2b72 commit 54fbf78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/src/device_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl BaoDeviceModel {
pub fn attach_io_client(&self) -> Result<BaoIoRequest> {
// Create a new I/O request
let mut request = BaoIoRequest {
virtio_id: 0,
dm_id: 0,
addr: 0,
op: BAO_IO_ASK,
value: 0,
Expand Down
4 changes: 2 additions & 2 deletions src/api/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize};
///
/// # Attributes
///
/// * `virtio_id` - Virtio instance ID.
/// * `dm_id` - Device model ID.
/// * `addr` - Address.
/// * `op` - Operation.
/// * `value` - Value.
Expand All @@ -22,7 +22,7 @@ use serde::{Deserialize, Serialize};
#[repr(C)]
#[derive(Debug)]
pub struct BaoIoRequest {
pub virtio_id: u64,
pub dm_id: u64,
pub addr: u64,
pub op: u64,
pub value: u64,
Expand Down

0 comments on commit 54fbf78

Please sign in to comment.