pt_entry_is_write_dirty(9)
π pt_entry_is_write_dirty β the Kernel API Manual page you didn't know you needed
okay so bestie, we're in the Kernel API Manual today and this one's a little function with a big job: pt_entry_is_write_dirty.
β¨ NAME β¨
pt_entry_is_write_dirty β true if the entry has been written to. that's it. that's the whole vibe check. π«Ά
β¨ SYNOPSIS β¨
bool pt_entry_is_write_dirty (const struct pt_state *pts );
β¨ ARGUMENTS β¨
ptsβ the entry to query π like, this is the thing you're asking about. the main character of the query, if you will.
β¨ DESCRIPTION β¨
okay so what does "write dirty" even mean. ngl it sounds like a stan twitter subtweet but it's actually very literal: it means the HW has written to the OA translated by this entry. hardware did a little scribble. it's dirty now. periodt. π
and here's the sneaky part β if the entry is contiguous, then you can't just check one thing and call it a day. you have to return the consolidated "write dirty" for all the items. all of them. fr fr, no skipping. π
β¨ SEE ALSO β¨
go off, read these too:
- Kernel file
./drivers/iommu/generic_pt/pt_common.h pt_attr_from_entry(9),pt_can_have_leaf(9),pt_can_have_table(9),pt_clear_entries(9),pt_entry_make_write_dirty(9),pt_entry_make_write_clean(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)
π¦ okay that's the whole page, hope it slayed. this lil baddie lives in ./drivers/iommu/generic_pt, it's dated October 2026, and it's serving pt_entry_is_write_dirty(9) energy from the Kernel API Manual. mwah πβ¨π
π¦ 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