i3c_master_enec_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i3c_master_enec_locked β€” a Kernel API Manual moment πŸŽ€

okay so bestie, welcome to the Kernel API Manual entry for i3c_master_enec_locked(9) β€” yes that's the whole name, yes it's a mouthful, no we're not abbreviating it, it's iconic and we respect it. ✨


🌸 NAME 🌸

i3c_master_enec_locked β€” send an ENEC CCC command πŸ¦‹

Like, that's it. That's the whole job. It sends an ENEC CCC command. Slay.


✨ SYNOPSIS ✨

int i3c_master_enec_locked (struct i3c_master_controller *master , u8
addr , u8 evts );

Returns an int, takes three things, and honestly the signature is doing the absolute most with those line breaks but we love her anyway. πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • master β€” the master we're using to send frames on the bus. main character energy fr fr πŸ‘‘
  • addr β€” a valid I3C slave address, or I3C_BROADCAST_ADDR if you're feeling like talking to everyone at once. Not me picking the broadcast option just to make it everyone's problem πŸ™ˆ
  • evts β€” events to disable. yep, that's what it says. we move. πŸ’€

🫢 DESCRIPTION 🫢

So what it actually does: it sends an ENEC CCC command to enable some or all events coming from one specific slave β€” or, if addr is I3C_BROADCAST_ADDR, from all the devices. the way that one address field changes the whole scope of the operation?? lowkey powerful. ⭐

⚠️ okay this part is the vibe check that matters: this function must be called with the bus lock held in write mode. no cap. don't skip the lock. the _locked in the name is not decorative, bestie πŸ˜­πŸ”’

🌈 RETURN 🌈

  • 0 β€” success, we ate, everything is fine and the bus is happy πŸ“
  • a negative error code β€” otherwise. and if you see that, something went sideways. ngl, that's the sad part of the story 😭

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, and yes we're listing every single one of them because nobody gets left behind. periodt. πŸ‘‘

Kernel file ./drivers/i3c/master.c

iykyk, it's giving "read the whole API surface or else". πŸ“šβœ¨


and that's the page!! 🧚 source: ./drivers/i3c, version/date situation: October 2026 β€” mwah, love u, go hold that bus lock in write mode πŸ’–πŸ’…πŸŽ€

πŸ“¦ where this page comes from