STRUCT CDX_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cdx_ops(9) β€” like, the Kernel API Manual, but make it make sense πŸŽ€

okay bestie, so this is a page from the Kernel API Manual and it's about struct cdx_ops β€” literally the callback squad that a CDX controller supports. it's giving "here's the vibe contract between the bus and your controller" and honestly? iconic. ✨


🌸 NAME 🌸

struct cdx_ops β€” the callbacks supported by the CDX controller. that's it, that's the whole personality. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

struct cdx_ops {
    cdx_bus_enable_cb bus_enable;
    cdx_bus_disable_cb bus_disable;
    cdx_scan_cb scan;
    cdx_dev_configure_cb dev_configure;
 };

like, four function pointers, all lined up, all with their own little type names. no cap, that's the whole struct. 🫢


πŸ‘‘ Members πŸ‘‘

okay so let's meet the cast, main character energy only:

  • bus_enable β€” enables the bus on the controller. yes. that's the job. it turns the bus on πŸ”₯
  • bus_disable β€” disables the bus on the controller. the reverse slay. bus off, bestie πŸ’€
  • scan β€” scans for the devices hanging out on the controller. like a little headcount for the bus 🌈
  • dev_configure β€” the config-y one: stuff like reset, master_enable, msi_config etc. for a CDX device. one callback, many chores, we love a multitasker πŸ’…
ngl, these are callbacks β€” so you provide them, and the CDX controller calls them. don't come for me, that's literally what the struct is for. 🧚

⭐ SEE ALSO ⭐

go read these next, i'm obsessed with the cross-references:

like a whole group chat of related pages. iykyk. πŸ’œ


aaaand that's the page! πŸ“ cute little sign-off: this lives under ./include/linux/cdx, version date October 2026, and it's filed as struct cdx_ops(9). mwah, go read the other pages bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from