mcb_device_register(9)
π mcb_device_register(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for mcb_device_register(9), a.k.a. the moment your little mcb_device gets officially introduced to the world. it's giving debutante ball for kernel structs π
πΈ NAME πΈ
mcb_device_register β register a mcb_device π
like, actually register it. not "register it in your notes" register it. the real one. π
β¨ SYNOPSIS β¨
int mcb_device_register (struct mcb_bus *bus , struct mcb_device *dev );
no cap, that's the whole signature. two pointers, one int back. slay. π«Ά
π¦ ARGUMENTS π¦
busβ themcb_busthat the device belongs to. think of it as the friend group your device is joining. π«devβ themcb_deviceitself. the main character. π
π DESCRIPTION π
registers a specific mcb_device at a mcb_bus β and at the system itself too, bestie. so it's not just a bus thing, it's a whole-system thing. both. at once. multi-tasking icon behaviour. β
lowkey that's it. highkey that's the whole function. it takes your dev, ties it to its bus, and makes it known to the system. periodt. π₯
π SEE ALSO π
kernel file ./drivers/mcb/mcb-core.c β that's where the magic lives, iykyk π§
and the whole extended friend group, in the order the page lists them:
__mcb_register_driver(9), mcb_unregister_driver(9), mcb_alloc_bus(9), mcb_release_bus(9), mcb_bus_get(9), mcb_bus_put(9), mcb_alloc_dev(9), mcb_free_dev(9), mcb_bus_add_devices(9), mcb_get_resource(9), mcb_request_mem(9), mcb_release_mem(9), mcb_get_irq(9)
go read those next, bestie, they're all literally right there π
fr fr: this page is filed under ./drivers/mcb and it's dated October 2026. that's the source/version and the date, and yes i'm mentioning them because i love being thorough π
and that's the page!! tysm for reading, mwah, go register some devices responsibly ππ β¨
π¦ 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