sh_early_platform_left(9)
π sh_early_platform_left(9) β a Kernel API Manual moment π
okay so bestie, welcome to sh_early_platform_left(9), brought to you by the Kernel API Manual (yes, that one). this whole page is literally about checking if an early platform driver still has matching devices left to vibe with. short page. iconic page. let's go β¨
πΈ NAME πΈ
sh_early_platform_left β check if an early platform driver has matching devices π«Ά
like, that's the whole job. it peeks at your early platform driver and is like "hey, you still got devices that match?" π
β¨ SYNOPSIS β¨
int sh_early_platform_left (struct sh_early_platform_driver *epdrv , int id );
that's the signature, no cap, copy it exactly if you're writing it down π
π¦ ARGUMENTS π¦
epdrvβ the early platform driver structure π this is the driver bestie we're interrogatingidβ return true ifidor above exists π so like, this one sets the floor: you're asking whether there's anything atidor higher
fr fr,idis doing the heavy lifting here β it's not "is there anything at all", it's "is there anything atidor above". don't sleep on that detail π
π SEE ALSO π
go touch grass in the kernel file ./arch/sh/drivers/platform_early.c π± that's where the magic lives, iykyk
and the whole friend group of related functions, all of them, no skipping:
sh_early_platform_driver_register(9)sh_early_platform_add_devices(9)sh_early_platform_driver_register_all(9)sh_early_platform_match(9)sh_early_platform_driver_probe_id(9)sh_early_platform_driver_probe(9)early_platform_cleanup(9)
they're all in the same early-platform cinematic universe, stream them in order, main character energy π
π a little sign-off π
this page came straight out of the ./arch/sh/drivers corner of the kernel tree, dated October 2026, and it's filed under sh_early_platform_left(9) π§ mwah, go check your drivers, bestie πβ¨π
π¦ 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