can_proto_register(9)
β¨ can_proto_register(9) β¨
okay so bestie, welcome to the Kernel API Manual β yes, the Kernel API Manual, we're doing kernel stuff today and honestly? kind of iconic of us. this little page is all about can_proto_register, and it's gonna be so chill, i promise π«Ά
πΈ NAME πΈ
can_proto_register β register a CAN transport protocol π
like, you're putting your protocol on the map. main character registration energy.
π¦ SYNOPSIS π¦
int can_proto_register (const struct can_proto *cp );
π ARGUMENTS π
cpβ pointer to the CAN protocol structure. that's it, that's the whole argument. she's a pointer, she points at astruct can_proto, slay π
β RETURN β
so here's the vibe check on what you get back:
0β on success β¨ we love a clean zero, no notes-EINVALβ the protocol number is invalid (out of range, bestie, it's out of range π)-EBUSYβ protocol already in use, someone else got there first, tragic-ENOBUFβ ifproto_registerfails
ngl, that last one is literally just "if proto_register fails" β that's the whole note. no cap.
π SEE ALSO π
so you wanna keep exploring? here's the whole squad π
- Kernel file
./net/can/af_can.c can_send(9)effhash(9)can_rcv_list_find(9)can_rx_register(9)can_rx_unregister(9)can_proto_unregister(9)
like, can_proto_unregister(9) is literally right there when you're done being registered. balance. π§
and that's the page, bestie! brought to you by the legends over at ./net/can, dated October 2026, and yes the header/footer energy is can_proto_register(9) all the way through. go register something cute ππ₯
π¦ 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