cdx_clear_master(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cdx_clear_master(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for cdx_clear_master β€” yes that's the (9) section, we're in kernel-land now, put your hair up πŸŽ€


✨ NAME ✨

cdx_clear_master β€” disables bus-mastering for a CDX device 🚫🚌

like, it takes the bus-master hat off the device. no more bossing the bus around, bestie. that privilege is revoked πŸ’…


🌸 SYNOPSIS 🌸

int cdx_clear_master (struct cdx_device *cdx_dev );

that's the whole vibe. one function, one pointer, returns an int. iconic honestly 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cdx_dev β€” the CDX device to disable. yep, that's it. you hand it the device you want to un-master, and it does the thing. struct cdx_device *, non-negotiable ✨

πŸŽ€ RETURN πŸŽ€

  • 0 β€” success!! it worked, slay πŸ‘‘
  • -errno β€” failure 😭 it went sideways and you get a negative errno back so you can figure out exactly how it went sideways. no cap, always check this one.

πŸ”₯ SEE ALSO πŸ”₯

sooo here's the whole friend group (kernel file ./include/linux/cdx/cdx_bus.h) πŸ’œ

also lowkey go read cdx_set_master(9) right after this one β€” they're giving complementary opposites, iykyk 🌈


bestie note: this page lives in ./include/linux/cdx and it's dated October 2026 β€” so yeah, future vibes only β­πŸ’€

k that's the whole page, go clear that master flag, ily, bye πŸ§šπŸ’–πŸŒΈ

πŸ“¦ where this page comes from