pt_entry_make_write_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pt_entry_make_write_dirty β€” a kernel API manual, but make it cute ✨

okay so bestie, we're in the <purple>Kernel API Manual</purple> today and the star of the show is pt_entry_make_write_dirty(9). yes the name is a mouthful, no we're not changing it, it's iconic πŸ’…


🌸 NAME 🌸

pt_entry_make_write_dirty β€” Make an entry dirty 🫢


✨ SYNOPSIS ✨

bool pt_entry_make_write_dirty (struct pt_state *pts );

that's it. that's the whole signature. one argument, returns a bool, lowkey elegant ngl 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • pts β€” the table entry you want to change, like the actual one you're dirtying up πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole vibe here: this function makes pt_entry_is_write_dirty return true for this entry. that's the entire mission. no cap 🧚

and the important part, bestie β€” this can be called asynchronously with any other table manipulation, all under a RCU lock. so like, multiple things are touching the table at once and yours is one of them πŸ™ˆ

πŸ’€ and it must not corrupt the table. that's a hard requirement, not a suggestion, fr fr. no pressure or anything 😭

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/iommu/generic_pt/pt_common.h β€” go say hi 🫢

and here's the whole friend group, in the order the manual gives them:


🌈 and that's the page!! this whole thing ships from ./drivers/iommu/generic_pt, dated October 2026, and it's pt_entry_make_write_dirty(9) all the way down. slay, go dirty some entries responsibly πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from