ccw_device_get_mdc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ccw_device_get_mdc(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the Kernel API Manual page for ccw_device_get_mdc(9). It's a lil kernel helper with main-character energy, and its whole thing is accumulating the max data count. Let's get into it ✨

πŸ’– NAME πŸ’–

ccw_device_get_mdc β€” accumulate max data count

✨ SYNOPSIS ✨

int ccw_device_get_mdc (struct ccw_device *cdev , u8 mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • cdev β€” the ccw device for which the max data count is accumulated. This is the device we're doing the math for πŸ‘‘
  • mask β€” mask of paths to use. Yep, it's literally the path mask, no cap 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

So this returns the number of 64K-bytes blocks that all paths at least support for a transport command. Like, every path has to be able to handle that many blocks, or it doesn't count β€” it's giving "lowest common denominator but make it kernel" πŸ’…

And if the return value is 0, that indicates failure. Not the vibe 😭

🌸 SEE ALSO 🌸


that's the whole page, bestie 🫢 source/version: ./drivers/s390/cio; date: October 2026; manual: Kernel API Manual; page: ccw_device_get_mdc(9). byeee πŸ’‹

πŸ“¦ where this page comes from