UNION I2C_EVENT(9)
π 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
- 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