Skip to content

Commit

Permalink
[ipc] E: Renaming TOTAL_SIZE to IPC_MESSAGE_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenna committed Oct 9, 2024
1 parent 7687ac9 commit 95b35b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sys/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub mod kernel {
/// - The value of this function has direct impact on IPC performance.
/// - The default value is set to match the size of a cache line in x86 processors.
///
pub const TOTAL_SIZE: usize = 64;
pub const IPC_MESSAGE_SIZE: usize = 64;
}

//==================================================================================================
Expand Down
4 changes: 2 additions & 2 deletions src/sys/ipc/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct Message {
/// Payload of the message.
pub payload: [u8; Self::PAYLOAD_SIZE],
}
crate::static_assert_size!(Message, config::kernel::TOTAL_SIZE);
crate::static_assert_size!(Message, config::kernel::IPC_MESSAGE_SIZE);

//==================================================================================================
// Implementations
Expand All @@ -54,7 +54,7 @@ impl Message {
pub const HEADER_SIZE: usize =
2 * mem::size_of::<ProcessIdentifier>() + MessageType::SIZE + mem::size_of::<i32>();
/// The size of the message's payload.
pub const PAYLOAD_SIZE: usize = config::kernel::TOTAL_SIZE - Self::HEADER_SIZE;
pub const PAYLOAD_SIZE: usize = config::kernel::IPC_MESSAGE_SIZE - Self::HEADER_SIZE;

///
/// # Description
Expand Down

0 comments on commit 95b35b1

Please sign in to comment.