_dat_walk_gfn_range(9)
π¦ NAME π¦
okay so welcome to the _dat_walk_gfn_range(9) page from the Kernel API Manual, bestie β today we're learning how to walk DAT tables π
like literally just strolling through them, page frame by page frame, no cap
β¨ SYNOPSIS β¨
long _dat_walk_gfn_range (gfn_t start , gfn_t end , union asce asce ,
const struct dat_walk_ops *ops , int flags , void *priv );
that's the whole signature, copy it exactly, do not freestyle it π
π ARGUMENTS π
startβ the first guest page frame that gets walked. your starting point, your main character entrance πendβ the guest page frame immediately after the last one to walk. so like, it's exclusive β it's the one right after the finish line, not the finish line itself πasceβ the ASCE of the guest mapping. yes queen, that ASCE π«Άopsβ thegmap_walk_opsthat will be used to perform the walk. these are the ones doing the actual strolling πΆββοΈflagsβ flags fromWALK_*, and rn literally onlyWALK_IGN_HOLESis supported (that's it, that's the whole list, she's a solo act π)privβ gets passed as-is to the callbacks. no vibes check, no modifications, straight through π
π DESCRIPTION π
here's the tea: any callback that returns non-zero causes the walk to stop immediately. like, instantly. walk's over, everyone go home π so if your callback is out here returning nonzero for fun, that's on you fr fr
π₯ RETURN π₯
-EINVALβ in case of error, classic π«-EFAULTβ ifstartis too high for the given ASCE, unless theDAT_WALK_IGN_HOLESflag is specified- otherwise β it returns whatever the callbacks return, literally whatever they hand back, that's the answer β¨
ngl bestie, peep that the flag list up in ARGUMENTS saysWALK_IGN_HOLESand this RETURN bit saysDAT_WALK_IGN_HOLESβ both appear exactly like that in the original, so i'm keeping both spellings, no editing, no fixing, periodt π
πΈ SEE ALSO πΈ
kernel file ./arch/s390/kvm/gmap/dat.c, plus these iconic little friends:
dat_crstep_xchg_atomic(9)dat_entry_walk(9)dat_test_age_gfn(9)dat_perform_essa(9)dat_set_cmma_bits(9)
go read them, they ate π
and that's the page!! π this little beauty comes from ./arch/s390/kvm/gmap and it's dated October 2026, filed under _dat_walk_gfn_range(9) β mwah, go walk some tables, ily, bye π¦π
π¦ 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