pdcspath_fetch(9)
π pdcspath_fetch β a Kernel API Manual moment
okay so bestie, welcome to pdcspath_fetch, a page from the Kernel API Manual and honestly? she's a baddie with a very specific job. buckle up π
β¨ NAME β¨
pdcspath_fetch β this function populates the path entry structs. that's it, that's the whole vibe. she fills in the structs β¨
πΈ SYNOPSIS πΈ
int pdcspath_fetch (struct pdcspath_entry *entry );
π¦ ARGUMENTS π¦
entryβ a pointer to an allocatedpdcspath_entry. like, it has to already exist, bestie, she's not out here creating structs out of thin air π just pointing at one that's already been allocated.
π DESCRIPTION π
so here's the general idea, and it's honestly so smart: you do not read from the Stable Storage every single time you access the files provided by the facilities. no ma'am. that would be extra π
instead, we store a copy of the content of the stable storage WRT various paths in these structs. we read these structs when reading the files, and we will write to these structs when writing to the files β and only then write them back to the Stable Storage. like a little cache era, a little glow-up for your I/O π
β οΈ okay important one, no cap: this function expects to be called with entry->rw_lock write-hold. so you gotta be holding that write lock when you call her. don't skip this, fr fr π
π SEE ALSO π
Kernel file ./drivers/parisc/pdc_stable.c plus the whole friend group:
pdcspath_store(9)pdcspath_hwpath_read(9)pdcspath_hwpath_write(9)pdcspath_layer_read(9)pdcspath_layer_write(9)pdcspath_attr_show(9)pdcspath_attr_store(9)pdcs_size_read(9)pdcs_auto_read(9)pdcs_autoboot_read(9)pdcs_autosearch_read(9)pdcs_timer_read(9)pdcs_osid_read(9)pdcs_osdep1_read(9)pdcs_diagnostic_read(9)pdcs_fastsize_read(9)pdcs_osdep2_read(9)pdcs_auto_write(9)pdcs_autoboot_write(9)pdcs_autosearch_write(9)pdcs_osdep1_write(9)pdcs_osdep2_write(9)pdcs_register_pathentries(9)pdcs_unregister_pathentries(9)
and that's the page, bestie π«Ά this iconic lil number lives in ./drivers/parisc and it's dated October 2026, signed off under the name pdcspath_fetch(9) β go forth and fetch those path entry structs responsibly πβ¨
π¦ 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