sh_early_pla...driver_probe(9)
π NAME π
ok so bestie, welcome to the sh_early_platform_driver_probe page β¨ β this is the Kernel API Manual, and this function? it probes a whole class of registered drivers. slay. π
πΈ SYNOPSIS πΈ
int sh_early_platform_driver_probe (char *class_str , int nr_probe , int
user_only );
like literally that's the whole signature, no cap, it returns an int π«Ά
β¨ ARGUMENTS β¨
class_strβ a string that identifies the early platform driver class you're after π·οΈ like, this is how you say "yeah that class, that one"nr_probeβ how many platform devices you wanna successfully probe before it dips out and exits π so it's the count of successful probes, and then it's doneuser_onlyβ only probe the early platform devices that the user specified π so it narrows the whole thing down to just the user's picks
π¦ DESCRIPTION π¦
so the architecture code is the one calling this, and what it does is probe the registered early platform drivers inside a certain class π« that's the whole vibe.
but here's the thing bestie, it doesn't just happen for free β for a probe to actually go down, you need a registered early platform device that matches a registered early platform driver. matching pair or it's giving nothing. π€
ngl this is a "both sides gotta show up" situation β no matching device, no matching driver, no probe. periodt. π
π SEE ALSO π
the kernel file itself, iconic source material:
./arch/sh/drivers/platform_early.c
and the whole friend group of related calls, all fr fr worth a read:
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_left(9)sh_early_platform_driver_probe_id(9)early_platform_cleanup(9)
and that's the page!! π source lives in ./arch/sh/drivers, dated October 2026 β mwah, go probe something cute πβ¨π§ββοΈ
π¦ 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