i3c_master_s...c_cmd_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i3c_master_send_ccc_cmd_locked(9) β€” the Kernel API Manual entry you didn't know you needed

okay so picture this: you're deep in the i3c subsystem, the vibe is immaculate, and you need to actually send a CCC (Common Command Codes). that's it, that's the whole function. this is your girl. it lives in the Kernel API Manual, and honestly? she's a whole mood. πŸ¦‹


✨ SYNOPSIS ✨

int i3c_master_send_ccc_cmd_locked (struct i3c_master_controller *master
, struct i3c_ccc_cmd *cmd );

like, look at her. two args, one int coming back. clean. minimal. main character energy fr fr. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • master β€” the master used to send frames on the bus, bestie. this is the controller doing the actual yeeting of bytes onto the wire. πŸ”₯
  • cmd β€” the command to send. yes literally, that's the whole thing. she's the payload, the moment, the iconic little struct. ✨

⭐ RETURN ⭐

so here's the tea: you get 0 in case of success, or a negative error code otherwise. and listen β€” the I3C Mx error codes are stored in cmd->err, so don't go looking in the return value for those, okay? check cmd->err. iykyk. 🫢

ngl this is the part people skim and then are like "why is my error code weird" β€” it's in cmd->err, go look there. πŸ™ˆ

🌈 SEE ALSO 🌈

it's giving linked list of neighbors and i'm obsessed. the Kernel file ./drivers/i3c/master.c is where the magic lives, and these are all your sisters in the same file, no cap:

like... that's the whole friend group. every single one. invite them all to the group chat. πŸ’–


and that's the page, babes β€” sourced from ./drivers/i3c, dated October 2026, and it's the one and only i3c_master_s...c_cmd_locked(9) from the Kernel API Manual. go forth and send your CCCs responsibly. slay. πŸ‘‘βš‘πŸ“

πŸ“¦ where this page comes from