STRUCT SPRD_MUX_SSEL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct sprd_mux_ssel β€” like, the whole vibe πŸ’…

okay so this is a page from the Kernel API Manual and bestie, it's a tiny one but it's important β€” it's literally the struct that tells a mux clock which source-select bits to look at in its register. no cap. πŸŽ€


🌸 NAME 🌸

struct sprd_mux_ssel β€” mux clock's source select bits in its register ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sprd_mux_ssel {
    u8 shift;
    u8 width;
    const u8        *table;
};

like, that's the whole thing. three little fields. main character energy honestly πŸ‘‘


πŸ’– Members πŸ’–

  • shift β€” the bit offset of the divider in its register. like, where does this field even start, you know? that's shift. πŸ“
  • width β€” the width of the divider field in its register. so how many bits wide is the thing we're pointing at. slay. πŸ“
  • table β€” okay so this one's for some mux clocks where not all sources are used on some special chips 🫢. this field matches the value of the mux clock's register against the sources that are actually used for this mux clock. lowkey the most interesting member ngl πŸ”₯

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/clk/sprd/mux.h β€” go read it, iykyk πŸ“–βœ¨

that's the tea, bestie πŸ“ this page is from ./drivers/clk/sprd, October 2026, and it's struct sprd_mux_ssel(9) β€” periodt. πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from