sclp_sd_file_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

sclp_sd_file_create β€” okay so this one adds a sysfs file representing a Store Data entity, and bestie it’s giving kernel-API main character energy. This is the sclp_sd_file_create(9) page from the Kernel API Manual, btw. 🫢


🌸 SYNOPSIS 🌸

The signature is literally:

struct sclp_sd_file * sclp_sd_file_create (const char *name , u8 di );

πŸŽ€ ARGUMENTS πŸŽ€

Two arguments, both iconic:

  • name β€” Name of file. No cap, that’s the whole vibe.
  • di β€” DI value associated with this entity. Iykyk. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the tea: this creates a sysfs directory with the given name, located under:

/sys/firmware/sclp_sd/

The files in this directory can be used to access the contents of the Store Data entity associated with DI. Periodt. ✨

It returns a pointer to the resulting sclp_sd_file object on success, and NULL otherwise. The object must be freed by calling kobject_put on the embedded kobject pointer after use. This is not a drill, bestie β€” after use, call kobject_put on the embedded kobject pointer. πŸ’€πŸ’–


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/s390/char/sclp_sd.c, plus the whole squad:


Made with πŸ’– from ./drivers/s390/char Β· October 2026 β€” slay responsibly and remember to kobject_put after use. πŸ§šπŸ‘‘

πŸ“¦ where this page comes from