sh_early_platform_left(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 interrogating
  • id β€” return true if id or above exists πŸ‘‘ so like, this one sets the floor: you're asking whether there's anything at id or higher
fr fr, id is doing the heavy lifting here β€” it's not "is there anything at all", it's "is there anything at id or 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:

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