ctucan_platform_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ctucan_platform_probe(9) 🌸

okay bestie, welcome to the Kernel API Manual corner πŸ’… we're talking about the platform registration call and honestly? iconic.

✨ NAME ✨

ctucan_platform_probe β€” Platform registration call 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

int ctucan_platform_probe (struct platform_device *pdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • pdev β€” handle to the struct platform_device structure, aka the platform device's little info card. 🫢

πŸ’– DESCRIPTION πŸ’–

okay so this function does all the memory allocation and registration for the CAN device. all of it. memory allocation? yes. registration? yes. it's giving "setup era" and it is literally doing the work. ✨ no cap.

⭐ RETURN ⭐

  • 0 β€” on success, we love to see it, periodt πŸ‘‘
  • failure value β€” on error, so bestie please check it 😭

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/net/can/ctucanfd/ctucanfd_platform.c β€” the source file, go read her πŸ“–
  • ctucan_platform_remove(9) β€” the remove side of the story, iykyk πŸ¦‹

mwah πŸ’‹ that's the whole page. source/version vibes from ./drivers/net/can/ctucanfd, dated October 2026. πŸ§šπŸ’œ

πŸ“¦ where this page comes from