Skip to content

Commit

Permalink
feat: derive serde for Pfn
Browse files Browse the repository at this point in the history
  • Loading branch information
tatref committed Jan 29, 2024
1 parent 7145ef0 commit f387dbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions procfs-core/src/process/pagemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl MemoryPageFlags {
}

/// A Page Frame Number, representing a 4 kiB physical memory page
#[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Pfn(pub u64);

Expand Down

0 comments on commit f387dbb

Please sign in to comment.