pt_entry_make_write_dirty(9)
π 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:
pt_attr_from_entry(9)pt_can_have_leaf(9)pt_can_have_table(9)pt_clear_entries(9)pt_entry_make_write_clean(9)pt_entry_is_write_dirty(9)pt_dirty_supported(9)pt_entry_num_contig_lg2(9)pt_entry_oa(9)pt_entry_oa_lg2sz(9)pt_entry_oa_exact(9)pt_full_va_prefix(9)pt_has_system_page_size(9)pt_install_leaf_entry(9)pt_install_table(9)pt_item_oa(9)pt_load_entry_raw(9)pt_max_oa_lg2(9)pt_num_items_lg2(9)pt_pgsz_lg2_to_level(9)pt_possible_sizes(9)pt_table_item_lg2sz(9)pt_table_oa_lg2sz(9)pt_table_pa(9)pt_table_ptr(9)pt_max_sw_bit(9)pt_test_sw_bit_acquire(9)pt_set_sw_bit_release(9)pt_load_entry(9)
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms