sclp_sd_store_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 sclp_sd_store_data β€” the NAME bit 🌸

ok so this is a page from the Kernel API Manual (section 9, kernel-space bestie πŸ’…) and it's all about sclp_sd_store_data β€” which literally just means Obtain data for specified Store Data entity. that's the whole vibe. slay.


✨ SYNOPSIS ✨

int sclp_sd_store_data (struct sclp_sd_data *result , u8 di );

like, that's the whole signature. she's compact. she's iconic. πŸŽ€


🫢 ARGUMENTS 🫢

  • result β€” the resulting data. this is where the good stuff lands, bestie πŸ’–
  • di β€” the DI value associated with this entity. yes, it's just a u8, no she's not gonna elaborate further, that's the whole description πŸ™ˆ

πŸ’« DESCRIPTION πŸ’«

okay so picture this: the function performs a series of Store Data requests β€” not one, a whole series, the way that it keeps going πŸ”₯ β€” and the goal is to obtain both the size and the contents of the specified Store Data entity.

that's it. that's the function. size + contents. get you a function that can do both πŸ’…


πŸ”₯ RETURN πŸ”₯

  • 0 β€” Success! πŸŽ‰ the result is stored in result. important though: result->data must be released using vfree after use. do not forget. do not ghost your vfree. 😭
  • -ENOENT β€” No data available for this entity. it's giving empty. it's giving nothing in the fridge. πŸ™ˆ
  • %<0 β€” Other error. any other negative value, you're in "something went wrong and it's not the no-data one" territory πŸ’€
ngl the vfree line is the main character here β€” free your result->data or you're leaking, and leaking is not the vibe 🫢

🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/s390/char/sclp_sd.c β€” go read it, iykyk πŸ“–

and then the whole friend group:

like, the entire sclp_sd cinematic universe ✨🧚


ok that's the page!! mwah πŸ’–

this masterpiece lives in ./drivers/s390/char and it's dated October 2026 β€” so yeah, future-dated kernel docs, we love to see it πŸ‘‘. catch you in the next manpage, bestie, stay freeing your vfrees πŸŽ€πŸŒΈπŸ’œ

πŸ“¦ where this page comes from