db_for_each_64(9)
π db_for_each_64(9) β the kernel API manual, bestie edition π
okay so we're in the db_for_each_64(9) page of the Kernel API Manual and honestly it's giving "tiny function, big main character energy" β¨ stick with me.
πΈ NAME πΈ
db_for_each_64 β the iterator for 64 bit entries, periodt π
β¨ SYNOPSIS β¨
int db_for_each_64 (const struct os_area_db *db , const struct
os_area_db_id *match_id , struct db_iterator *i );
lowkey that's the whole vibe right there π«Ά
π¦ ARGUMENTS π¦
dbβ so the manpage itself literally just says -- undescribed -- π like the docs said "figure it out bestie". Not me making stuff up though, no cap β that's all it says. πmatch_idβ also -- undescribed -- π same energy, the source was busy.iβ and yep, -- undescribed -- too π the trio of mystery arguments, iconic honestly.
fr fr, I'm not gonna invent descriptions for these β the original page doesn't describe them, so neither do I. if you wanna know more, go read the headers, iykyk π
π₯ DESCRIPTION π₯
okay so here's the actual tea π: a NULL value for id can be used to match all entries. like, every single one. the whole roster. main character matching energy π
and it's not just NULL β you can also use OS_AREA_DB_OWNER_ANY and OS_AREA_DB_KEY_ANY to match all. so that's three whole ways to say "yeah give me everything" ππ
π SEE ALSO π
the whole friend group, assembled π«Ά go say hi:
- Kernel file
./arch/powerpc/platforms/ps3/os-area.c struct os_area_header(9)struct os_area_params(9)struct os_area_db(9)enum os_area_db_owner(9)struct saved_params(9)os_area_set_property(9)os_area_get_property(9)update_flash_db(9)os_area_queue_work_handler(9)ps3_os_area_save_params(9)ps3_os_area_init(9)ps3_os_area_get_rtc_diff(9)ps3_os_area_set_rtc_diff(9)ps3_os_area_get_av_multi_out(9)
and that's the page!! π this lil gem lives under ./arch/powerpc/platforms/ps3, and it's dated October 2026 β future-coded of it tbh β slay, go read the rest of the kernel docs, 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