Skip to content

Commit

Permalink
Merge pull request #301 from tatref/serde-pfn
Browse files Browse the repository at this point in the history
Derive serde for Pfn
  • Loading branch information
eminence authored Feb 3, 2024
2 parents 7145ef0 + f387dbb commit 85ac3ee
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 85ac3ee

Please sign in to comment.