ccw_device_set_options_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ccw_device_set_options_mask(9) ✨

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the ccw_device_set_options_mask page and honestly it's a little icon of a function. it's giving "choose your own adventure but the flags are the adventure" πŸŽ€


🌸 NAME 🌸

ccw_device_set_options_mask β€” set some options and unset the rest. yes that's the whole vibe: some in, some out, main character energy for the ones you picked πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ccw_device_set_options_mask (struct ccw_device *cdev , unsigned long
flags );

literally exactly that, no cap. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • cdev β€” the device for which the options are to be set. this is the little guy we're doing all this for 🫢
  • flags β€” the options to be set. these are the ones getting the yes, the spotlight, the crown πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so here's the entire lore: all flags specified in flags are set, and all flags not specified in flags are cleared. that's it. that's the function. it's giving "if you're not on the list you're not getting in" πŸ™ˆ the ones you name get in, everyone else gets uninvited. periodt.


⭐ RETURN ⭐

  • 0 on success β€” we ate, no crumbs πŸ”₯
  • -EINVAL on an invalid flag combination β€” not the combo slaying, bestie 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/s390/cio/device_ops.c β€” and the whole friend group:


ngl bestie, read the whole squad β€” iykyk πŸ’œ

and that's the page fr fr 🧚 from ./drivers/s390/cio, dated October 2026, signed off with love as ccw_device_set_options_mask(9) πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from