locomo_probe(9)
π locomo_probe(9) β the Kernel API Manual, bestie edition β¨
okay so this is locomo_probe(9), straight out of the Kernel API Manual, and honestly? she's a little icon. let's get into it π
πΈ NAME πΈ
locomo_probe β probe for a single LoCoMo chip π
like, one chip. a single one. not a crowd. that's her whole thing β¨
π¦ SYNOPSIS π¦
int locomo_probe (struct platform_device *dev );
yep, that's the whole signature. int in the front, platform device in the middle, and that trailing space before the closing paren is part of the vibe, we don't touch it π«Ά
π ARGUMENTS π
devβ platform device π§
that's it. that's the argument. she takes one platform device and she takes it seriously π
π DESCRIPTION π
okay so bestie, listen up: locomo_probe probes for a LoCoMo chip π₯
and the important bit β the no cap bit β is that this must be called before any other locomo-specific code. like, before. not after, not "ehh somewhere in the vicinity", not "I'll get to it". before. she's the main character and everyone else waits their turn π
β RETURN β
this is the part where she tells you how it went, and ngl she's got range π
-EINVALβ the device'sIORESOURCE_MEMwas not found π-ENXIOβ could not allocate an IRQ for the device π-ENODEVβ device not found.-EBUSYβ the physical address is already marked in-use. she's taken, sorry π«-ENOMEMβ could not allocate or iomap memory πΈ0β successful. slay. ate. periodt β¨π
π‘ tiny note bestie: 0 is the good one. if you see a negative number, that's the kernel going "hm" and you should probably read the list again π
π«Ά SEE ALSO π«Ά
- Kernel file
./arch/arm/common/locomo.cβ go read her, iykyk π
that's the whole page!! go forth, probe your chip, respect the call order π
β with love, from ./arch/arm/common, dated October 2026, Kernel API Manual edition π
π¦ 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