pdcs_osdep1_write(9)
π pdcs_osdep1_write(9) β like, the whole vibe
okay bestie, so this is a page straight outta the Kernel API Manual and it's all about pdcs_osdep1_write(9) β the function that takes in the OS-Dependent data area 1 for Stable Storage. yes it's niche. yes it's iconic. let's get into it π«Ά
β¨ SYNOPSIS β¨
ssize_t pdcs_osdep1_write (struct kobject *kobj , struct kobj_attribute
*attr , const char *buf , size_t count );
bestie look at that return type. ssize_t. slay. π
πΈ ARGUMENTS πΈ
four little besties walk into a function:
kobjβ thekobjectthat's used to share data with userspace. it's giving main character energy, it's the whole reason y'all are talking πattrβ thekobjectattributes. the ~vibes~ of the object, if you will β¨bufβ the input buffer you read from. the actual tea gets poured in here πcountβ the number of bytes to be read. literally just counting. someone's gotta do it π
π DESCRIPTION π
okay so here's the lore: this thing can store 16 bytes of OS-Dependent data. sixteen. not fifteen, not seventeen, sixteen. periodt π
and the way it does it? byte-by-byte writes. one byte at a time, no cap. it's not gonna batch it for you, it's not gonna be fancy about it β it's just gonna chomp through it one byte at a time like a very determined little guy π§
and bestie, hear me on this one: it's up to userspace to deal with it when constructing its input buffer. the kernel is not holding your hand here. you build the buffer, you own the buffer. iykyk π
π SEE ALSO π
the whole friend group, fr fr:
- Kernel file
./drivers/parisc/pdc_stable.c pdcspath_fetch(9)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_osdep2_write(9)pdcs_register_pathentries(9)pdcs_unregister_pathentries(9)
no gatekeeping here, they're all tagged in the group chat π
and that's the whole page, bestie π¦ this one lives over in ./drivers/parisc, stamped October 2026, and it's filed under pdcs_osdep1_write(9) in the Kernel API Manual β go off, read the source, you got this πβ
π¦ 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