STRUCT CDX_DEV_PARAMS(9)
π struct cdx_dev_params β CDX device parameters
okay so bestie, welcome to the Kernel API Manual (that's the manpage section 9 vibe, struct cdx_dev_params(9), iykyk) β this is where the kernel keeps the whole little profile of a CDX device. Think of it as the device's main character sheet β¨
πΈ NAME πΈ
struct cdx_dev_params β literally the CDX device parameters, no cap
β¨ SYNOPSIS β¨
struct cdx_dev_params {
struct cdx_controller *cdx;
struct device *parent;
u16 vendor;
u16 device;
u16 subsys_vendor;
u16 subsys_device;
u8 bus_num;
u8 dev_num;
struct resource res[MAX_CDX_DEV_RESOURCES];
u8 res_count;
u32 req_id;
u32 class;
u8 revision;
u32 msi_dev_id;
u32 num_msi;
};
π«Ά like, that's the whole struct. copy it exactly, don't be out here freelancing with the fields bestie.
π Members π
cdxβ the CDX controller this device is associated with π (its ride-or-die)parentβ the associated CDX Bus device, the parent it belongs tovendorβ the Vendor ID for the CDX device π·οΈdeviceβ the Device ID for the CDX devicesubsys_vendorβ the Sub vendor ID for the CDX device (yes, a sub vendor, still iconic)subsys_deviceβ the Sub device ID for the CDX devicebus_numβ the Bus number for this CDX device πdev_numβ the Device number for this deviceresβ an array of MMIO region entries π (it's giving "a whole list of them")res_countβ the number of valid MMIO regions π’ β so like, how many of thoseresentries actually countreq_idβ the Requestor ID associated with the CDX deviceclassβ the Class of the CDX Device π (it's giving very "what kind of device is this")revisionβ the Revision of the CDX devicemsi_dev_idβ the MSI device ID associated with the CDX devicenum_msiβ the Number of MSI's supported by the device β‘
heads up bestie:res_countis the one telling you how many of theresentries are actually valid MMIO regions β don't go reading past that, fr fr π
π¦ SEE ALSO π¦
- Kernel file
./drivers/cdx/cdx.h cdx_register_controller(9)cdx_unregister_controller(9)cdx_device_add(9)cdx_bus_add(9)cdx_msi_domain_init(9)
go read those, they're all in their own lane and they're lowkey obsessed with each other π
β¨ that's the whole page, periodt β¨ this lives in ./drivers/cdx and the version vibes are dated October 2026 β slay, go write some device code bestie ππ¦π
π¦ 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