ssh_ptl_get_device(9)
π 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 theptland 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 signedssh_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
- 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