ssam_device_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ssam_device_get β€” the Kernel API Manual, bestie edition πŸŽ€

Okay so picture this: you're deep in the Linux kernel, hanging out in the Surface Aggregator subsystem (yes, that's the 9 in ssam_device_get(9) β€” kernel API manual, we're fancy πŸ’…), and you've got yourself an SSAM client device. This page is about bumping its reference count so it doesn't get yeeted out from under you. Let's get into it πŸ¦‹


🌸 NAME 🌸

ssam_device_get β€” Increment reference count of SSAM client device.

Literally just "keep this device alive" energy ✨


🫢 SYNOPSIS 🫢

struct ssam_device * ssam_device_get (struct ssam_device *sdev );

πŸŽ€ ARGUMENTS πŸŽ€

  • sdev β€” The device to increment the reference count of. That's it, that's the whole argument, she's simple and she knows it πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea β˜•: this function increments the reference count of the given SSAM client device. But like β€” how? Not by magic, bestie. It does it by incrementing the reference count of the enclosed struct device via get_device. The vibe check happens at the inner device level πŸ”₯

And when you're done holding onto it, see ssam_device_put for the counter-part of this function. They're a matched set, yin and yang, get/put, iconic duo 🫢

No cap: every get needs its put, or you're spilling refs and that's not the main character move you think it is 😭

⭐ RETURN ⭐

Returns the device provided as input. Same device, more refs β€” it's giving "return to sender but make it a reference count" πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./include/linux/surface_aggregator/device.h β€” go read it, it's important iykyk πŸ‘‘


πŸ’– That's the whole page, babe! πŸ’– This little gift came out of the kernel file ./include/linux/surface_aggregator/device.h, dated October 2026 β€” slay, go forth and manage your reference counts responsibly πŸ§šβ€β™€οΈβœ¨πŸ“

πŸ“¦ where this page comes from