mei_cl_bus_dev_destroy(9)
π mei_cl_bus_dev_destroy(9) β the kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual, and today's main character is mei_cl_bus_dev_destroy β¨ it's short, it's sweet, it's a cleanup function β let's get into it π«Ά
πΈ NAME πΈ
mei_cl_bus_dev_destroy β literally destroys the me client device's object π (in the nice, tidy, intentional way, not the scary way)
β¨ SYNOPSIS β¨
void mei_cl_bus_dev_destroy (struct mei_cl_device *cldev );
that's it. one function, no return value, no drama π
π ARGUMENTS π
cldevβ the me client device π this is the one getting destroyed, so likeβ¦ handle with care bestie
π DESCRIPTION π
So here's the thing β the locking is the moment. This one is called under the "dev->cl_bus_lock" lock π no cap, that's the whole vibe. Don't be out here calling it without the lock held, iykyk π
π¦ SEE ALSO π¦
The kernel file lives at ./drivers/misc/mei/bus.c, and honestly the whole friend group is listed here, so let's give them all their moment π
The __mei_cl_* besties:
The vtag girlies:
mei_cldev_send_vtag(9)mei_cldev_send_vtag_timeout(9)mei_cldev_recv_vtag(9)mei_cldev_recv_timeout(9)mei_cldev_recv_vtag_timeout(9)mei_cl_bus_vtag(9)mei_cl_bus_vtag_alloc(9)mei_cl_bus_vtag_free(9)
The send/recv crew:
The bus workers, doing the actual labour π :
Callback registration, slay:
drvdata β get it, set it, iconic:
The little getters that could π₯Ί:
Module refcount besties (get & put, the classic duo):
Enable / disable era β¨:
Device matching & lifecycle, the whole plot arc:
mei_cl_device_find(9)mei_cl_device_match(9)mei_cl_device_probe(9)mei_cl_device_remove(9)mei_cl_device_uevent(9)
The name & dev pipeline, in order bestie:
mei_cl_bus_set_name(9)mei_cl_bus_dev_alloc(9)mei_cl_bus_dev_setup(9)mei_cl_bus_dev_add(9)mei_cl_bus_dev_stop(9)
The removal squad (our girl is literally one of them π«Ά):
And the last two, holding it down:
fr fr that's the whole page π short king energy. But the SEE ALSO section ate, so go read the rest of the family, bestie πΈ
okay bye, love u, stay locked ππ this page came from ./drivers/misc/mei, dated October 2026 β and it's mei_cl_bus_dev_destroy(9) the whole way through βπ§π
π¦ 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