ssh_ptl_get_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ssh_ptl_get_device(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is ssh_ptl_get_device ✨ this is the lil helper that tells you which device your packet transport layer is built on top of. that's it, that's the whole job, and honestly? iconic. πŸŽ€


🌸 NAME 🌸

ssh_ptl_get_device β€” get the device associated with the packet transport layer. yes literally, that's the vibe: you hand it a transport layer, it hands you a device. no cap. 🫢


✨ SYNOPSIS ✨

struct device * ssh_ptl_get_device (struct ssh_ptl *ptl );

one function, one argument, one pointer coming back at you. clean. effortless. slay. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ptl β€” the packet transport layer. this is the thing you're asking about, okay? the whole point. give it the ptl and it'll go find the device it's living on. πŸ’–

πŸ”₯ RETURN πŸ”₯

returns the device on which the given packet transport layer builds upon. so like, the device backing your ptl. that's the answer. periodt. πŸ‘‘


🌈 SEE ALSO 🌈

  • the kernel file ./drivers/platform/surface/aggregator/ssh_packet_layer.h β€” go read the source, bestie, it's right there πŸ“
  • enum ssh_ptl_state_flags(9)
  • struct ssh_ptl_ops(9)
  • struct ssh_ptl(9)
  • ssh_ptl_tx_wakeup_transfer(9)

like, if you're already here, you're probably gonna want the whole squad. iykyk. 🧚


ok tiny reminder: this page is part of the Kernel API Manual, and the footer situation is giving ./drivers/platform/surface/agg... with an October 2026 date, all signed ssh_ptl_get_device(9). so yeah β€” that's the source, that's the version, that's the date, mwah πŸ’œ ngl a very cute sign-off for a very cute getter.

go get that device, bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from