UNION I2C_EVENT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– union i2c_event(9) πŸ’–

okay so bestie, this is from the Kernel API Manual, and we’re talking about union i2c_event β€” literally the union for bit access of P2C events. No cap, that’s the whole NAME vibe. πŸ’…

✨ NAME ✨

union i2c_event β€” bit access of P2C events. Exactly that, and we’re keeping it cute and factual. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

       union i2c_event {
           u32 ul;
           struct {
             enum response_type response : 2;
             enum status_type status : 5;
             enum mem_type mem_type : 1;
             u8 bus_id : 4;
             u32 length : 12;
             u32 slave_addr : 8;
           } r;
        };

🌸 Members 🌸

The source page has a Members section, but it’s lowkey empty β€” no separate member descriptions underneath, just the fields vibing in the synopsis above. You’ve got ul, r, and all those bitfield names right there in the struct, bestie. ✨

🌈 SEE ALSO 🌈

Kernel file ./drivers/i2c/busses/i2c-amd-mp2.h β€” plus union i2c_cmd_base(9), struct amd_i2c_common(9), and struct amd_mp2_dev(9). Go read those too, iykyk. πŸ‘‘


xoxo, your kernel bestie πŸ’… β€” source/version: ./drivers/i2c/busses, dated October 2026, and this iconic page is union i2c_event(9). Stay slay, bestie! πŸ’–βœ¨

πŸ“¦ where this page comes from