sclp_sd_store_data(9)
πΈ 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 au8, 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 inresult. important though:result->datamust be released usingvfreeafter use. do not forget. do not ghost yourvfree. π-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 thevfreeline is the main character here β free yourresult->dataor 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:
struct sclp_sd_data(9)struct sclp_sd_listener(9)struct sclp_sd_file(9)sclp_sd_listener_add(9)sclp_sd_listener_remove(9)sclp_sd_listener_init(9)sclp_sd_receiver(9)sclp_sd_sync(9)sclp_sd_data_reset(9)sclp_sd_file_release(9)sclp_sd_file_update(9)sclp_sd_file_update_async(9)reload_store(9)data_read(9)sclp_sd_file_create(9)sclp_sd_init(9)
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
- 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