dasd_biodasdinfo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dasd_biodasdinfo(9) β€” the kernel API manual, but make it cute

okay bestie, so this one's a kernel API manual page, dasd_biodasdinfo(9), and it's genuinely iconic in a "small but mighty" way. it fills out the dasd information structure. that's it. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

dasd_biodasdinfo β€” fill out the dasd information structure

like, literally just do the thing. fill the struct. slay. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int dasd_biodasdinfo (struct gendisk *disk , struct dasd_information2_t
*info );

yes the space before the comma is in the original, i'm not fixing it, it's part of the charm πŸ’€


🌸 ARGUMENTS 🌸

  • disk β€” [in] pointer to a gendisk structure that references a DASD. this is the main character of the operation, and the function is gonna vibe check it real hard (more on that in a sec) πŸ‘‘
  • info β€” [out] pointer to the dasd_information2_t structure. this is where all the good stuff lands. it's the output bestie, it gets written to. πŸŽ€

🧚 DESCRIPTION 🧚

okay so here's the whole plot: this function provides access to DASD-specific information. that's the gift. that's the serve. ✨

but first β€” before anything gets filled in β€” it does a little identity check. it looks at the gendisk structure and asks "bestie, are you part of the DASD driver?" and it figures that out by comparing the gendisk->fops pointer. that's the whole test. no cap, just a pointer comparison. πŸ”₯

if it does not belong to the DASD driver, the function returns -EINVAL. not sorry. gatekeeping is a form of self-care. πŸ™ˆ

otherwise β€” meaning the gendisk did pass the vibe check β€” the provided dasd_information2_t structure gets filled out. and that's the whole gig. iconic. periodt. πŸ‘‘


πŸ’– RETURN πŸ’–

  • 0 on success β€” we love a clean win ⭐
  • a negative error value on failure β€” she's not mad, she's just disappointed 😭

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/s390/block/dasd_ioctl.c β€” go read it if you want the full lore, iykyk πŸ¦‹

that's the whole page, bestie. short, sweet, and it ate. go forth and check those fops pointers. 🧚✨

β€” cute little sign-off: this page lives in the <bold>./drivers/s390/block</bold> neighborhood, and it was last touched in <bold>October 2026</bold>. mwah. πŸ’œ

πŸ“¦ where this page comes from