ssam_device_get(9)
β¨ 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: everygetneeds itsput, 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 π
enum ssam_device_domain(9)enum ssam_virtual_tc(9)struct ssam_device_uid(9)SSAM_DEVICE(9)SSAM_VDEV(9)SSAM_SDEV(9)struct ssam_device(9)struct ssam_device_driver(9)is_ssam_device(9)to_ssam_device(9)to_ssam_device_driver(9)ssam_device_mark_hot_removed(9)ssam_device_is_hot_removed(9)ssam_device_put(9)ssam_device_get_drvdata(9)ssam_device_set_drvdata(9)ssam_device_driver_register(9)module_ssam_device_driver(9)ssam_register_clients(9)ssam_device_register_clients(9)SSAM_DEFINE_SYNC_REQUEST_CL_N(9)SSAM_DEFINE_SYNC_REQUEST_CL_W(9)SSAM_DEFINE_SYNC_REQUEST_CL_R(9)SSAM_DEFINE_SYNC_REQUEST_CL_WR(9)ssam_device_notifier_register(9)ssam_device_notifier_unregister(9)
π 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
- 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