damos_sysfs...e_region_dir(9)
π damos_sysfs_populate_region_dir β the Kernel API Manual girlies know β¨
okay so bestie, this one lives in the Kernel API Manual (section 9, kernel-space functions, you know the vibe), and the page header is out here looking like damos_sysfs...e_region_dir(9) because it literally ran out of room π β but the actual function is damos_sysfs_populate_region_dir, and we're gonna get into it. no cap.
π NAME π
damos_sysfs_populate_region_dir β populates a schemes tried region dir. that's it, that's the whole job. she builds out the directory of regions that a scheme has tried. icon behavior honestly.
π¦ SYNOPSIS π¦
void damos_sysfs_populate_region_dir (struct damon_sysfs_schemes
*sysfs_schemes , struct damon_ctx *ctx , struct damon_target *t , struct
damon_region *r , struct damos *s , bool total_bytes_only , unsigned
long sz_filter_passed );
void return, seven args, absolutely no notes π β she's not giving you anything back, she just does the thing.
πΈ ARGUMENTS πΈ
the full lineup, every single one, no skipping, periodt:
sysfs_schemesβ the schemes directory she's gonna populate with regions directories. this is the destination, the venue, the main character location.ctxβ the corresponding DAMON context. the big picture, the situation, the whole ecosystem.tβ the DAMON target thatrbelongs to. like,r's home base.rβ the DAMON region we're actually populating the directory for. the guest of honor, lowkey.sβ the corresponding scheme. the reason we're all here tbh.total_bytes_onlyβ abooltelling you whether this request is for bytes update only. like, is this just a quick numbers refresh or the full treatment? iykyk.sz_filter_passedβ anunsigned long, and it's the bytes ofrthat passed the filters ofs. literally the filtered survivor count. she's discerning β¨
π₯ DESCRIPTION π₯
so this gets called from the DAMOS walk callback β and here's the part you cannot miss, bestie β while holding damon_sysfs_lock. like, that lock is held the entire time, no exceptions, that's the whole situation. π
read it again if you need to. called from the DAMOS walk callback, holding damon_sysfs_lock. that's the vibe check and she passed.
π«Ά SEE ALSO π«Ά
- the kernel file
./mm/damon/sysfs-schemes.cβ go read the source, that's where all the lore lives π
and that's the page!! π ngl she's short but she's thorough β seven arguments, one lock, zero nonsense. this was the Kernel API Manual, brought to you from ./mm/damon, dated October 2026 π signed, sealed, and slayed. 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