slim_alloc_txn_tid(9)
π slim_alloc_txn_tid(9) β the Kernel API Manual, bestie edition π
okay so picture this: you're deep in the Kernel API Manual (that's the manual name, iykyk) and you need a transaction ID for your SLIMbus message. That's literally this page. Welcome. π¦
β¨ NAME β¨
slim_alloc_txn_tid β Allocate a tid to txn π«
Like, it hands your transaction a tid. That's the whole vibe.
πΈ SYNOPSIS πΈ
int slim_alloc_txn_tid (struct slim_controller *ctrl , struct
slim_msg_txn *txn );
That's the exact signature, no cap β copy it character for character or the compiler will absolutely come for you π
π ARGUMENTS π
ctrlβ Controller handle. This is your controller, your main character, the one holding it all together πtxnβ transaction to be allocated with tid. Yeah, this is the txn that's getting the tid. It's giving "the whole point of the function" energy fr fr.
β RETURN β
zero on success with valid txn->tid and error code on failures.
So like β zero? that's the slay case, and your txn->tid is valid and everything's cute β¨. Anything else is an error code, and you should probably go touch grass and, like, actually handle it π
ngl the "valid txn->tid" part is doing a lot of work there β success means zero and a valid tid. Don't skip the vibe check on that one.
π¦ SEE ALSO π¦
Kernel file ./drivers/slimbus/messaging.c β literally where this lives, go read it bestie π
slim_msg_response(9)slim_free_txn_tid(9)slim_do_transfer(9)slim_xfer_msg(9)slim_read(9)slim_readb(9)slim_write(9)slim_writeb(9)
lowkey the whole slimbus friend group. go say hi π«Ά
and that's the page!! π from ./drivers/slimbus, dated October 2026 β mwah, iconic, periodt ππ
π¦ 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