sh_early_pl..._add_devices(9)
π sh_early_platform_add_devices π
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the big-kid kernel docs now, and this one is literally about registering early platform devices before the rest of the world wakes up. slay.
β¨ NAME β¨
sh_early_platform_add_devices β adds a number of early platform devices
like, it adds several of them at once. not one. a whole little squad. π«Ά
πΈ SYNOPSIS πΈ
void sh_early_platform_add_devices (struct platform_device **devs , int
num );
that's the whole vibe check right there, no cap.
π ARGUMENTS π
devsβ array of early platform devices to add. it's astruct platform_device **, so it's a pointer-to-pointer situation, she's fancy like that πnumβ number of early platform devices in array. anint. literally just how many of them you're handing over.
fr fr: devs is an array, not one device. don't be out here passing a single pointer and hoping for the best π
π¦ DESCRIPTION π¦
Used by early architecture code to register early platform devices and their platform data.
that's it, that's the tea. the early arch code calls this so the kernel knows about these devices early (the name was a hint, iykyk), and it scoops up their platform data right along with them. main character energy for the sh architecture's early boot era β¨
π₯ SEE ALSO π₯
- Kernel file
./arch/sh/drivers/platform_early.cβ go read the source, bestie, it's giving open book exam π sh_early_platform_driver_register(9)sh_early_platform_driver_register_all(9)sh_early_platform_match(9)sh_early_platform_left(9)sh_early_platform_driver_probe_id(9)sh_early_platform_driver_probe(9)early_platform_cleanup(9)
the whole early-platform friend group, honestly. they all show up together π
π the sign-off π
this page lives in ./arch/sh/drivers, it's from October 2026, and it's part of the Kernel API Manual, section 9. periodt. πβ¨
k byeeee, go register some devices early π§ββοΈπ
π¦ 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