STRUCT MLXSW_I2C(9)
π NAME π
struct mlxsw_i2c β device private data:
okay so this page is from the Kernel API Manual, and this struct is literally the device's private-data situation. no cap, it's giving βeverything the driver needs in one cozy little bagβ π
β¨
β¨ SYNOPSIS β¨
the whole struct, exactly as it shows up, bestie:
struct mlxsw_i2c {
struct {
u32 mb_size_in;
u32 mb_off_in;
u32 mb_size_out;
u32 mb_off_out;
struct mutex lock;
} cmd;
struct device *dev;
struct mlxsw_core *core;
struct mlxsw_bus_info bus_info;
u16 block_size;
struct mlxreg_core_hotplug_platform_data *pdata;
struct work_struct irq_work;
int irq;
};
πΈ Members πΈ
vibe check on every single field β nothing skipped, fr fr:
cmdβ command attributes;cmd.mb_size_inβ input mailbox size;cmd.mb_off_inβ input mailbox offset in register space;cmd.mb_size_outβ output mailbox size;cmd.mb_off_outβ output mailbox offset in register space;cmd.lockβ command execution lock;
devβ I2C device;coreβ switch core pointer;bus_infoβ bus info block;block_sizeβ maximum block size allowed to pass to under layer;pdataβ device platform data;irq_workβ interrupts work item;irqβ IRQ line number;
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/mellanox/mlxsw/i2c.cβ that's the source file, iykyk π¦
mwah π β source/version: ./drivers/net/ethernet/mellano... Β· date: October 2026 Β· manual: Kernel API Manual Β· page: struct mlxsw_i2c(9) β bye 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