dasd_biodasdinfo(9)
π 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 agendiskstructure 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 thedasd_information2_tstructure. 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 π
0on 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
- 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