STRUCT CLEAN_WALK(9)
β¨ struct clean_walk(9) β¨
okay so bestie, welcome to the struct clean_walk(9) page π
this is your girl's guide to... well, a private struct, so it's kinda exclusive, iykyk. It lives in the Kernel API Manual and it's the private struct for the clean_record_pte function. Private! main character energy only π
πΈ NAME πΈ
struct clean_walk β the private struct for the clean_record_pte function. not for the general public, bestie, it's giving backstage pass ποΈ
π¦ SYNOPSIS π¦
struct clean_walk {
struct wp_walk base;
pgoff_t bitmap_pgoff;
unsigned long *bitmap;
pgoff_t start;
pgoff_t end;
};
yeah that's the whole vibe. five members, zero drama π (well, one tiny bit of drama β see start and end below).
π§ Members π§
okay let's meet the cast, one by one, no skipping fr fr π
baseβ thestruct wp_walkwe derive from. it's the parent it's inheriting from, the nepo baby of the struct πbitmap_pgoffβ the address_space page offset of the first bit inbitmap. like, bit zero's home address πbitmapβ a bitmap with one bit for each page offset in the address_space range covered. one bit per page offset, so it stays lowkey tiny and slay β¨startβ the address_space page offset of the first modified pte, relative tobitmap_pgoff. relative!! not absolute!! don't come for me, that's just what it is πendβ the address_space page offset of the last modified pte, relative tobitmap_pgoff. same deal, also relative, stay mad about it π«Ά
real talk:startandendare both measured relative tobitmap_pgoff, so if you read them as absolute offsets you're gonna have a bad time. no cap π
π SEE ALSO π
go touch some other pages bestie, they're all in the kernel file ./mm/mapping_dirty_helpers.c:
struct wp_walk(9)wp_pte(9)clean_record_pte(9)wp_shared_mapping_range(9)clean_record_shared_mapping_range(9)
and that's the whole page, you ate that ππ this came out of ./mm and it's dated October 2026 β so go forth, read your pte's, and remember: private structs are private for a reason. 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