locomo_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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's IORESOURCE_MEM was 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