is_ssam_device(9)
π is_ssam_device(9) β the Kernel API Manual, but make it a group chat
okay so bestie, listen β this is a page from the Kernel API Manual, and honestly? it's a short one, so we're gonna get through it together and you're gonna slay it. no cap. π«Ά
β¨ NAME β¨
is_ssam_device β literally just checks if the device you handed it is a SSAM client device. that's it. that's the whole job. she's a vibe checker for structs. π
πΈ SYNOPSIS πΈ
bool is_ssam_device (struct device *d );
that's the whole signature, icon. clean, simple, to the point. we love a minimal queen. π
π ARGUMENTS π
dβ the device you want to test the type of. like, hand her the device and she'll tell you what it is. that's the assignment, and she ate. π
β RETURN β
so here's the tea π΅ β she returns true if the device you passed in is of type struct ssam_device, which means the device type points to ssam_device_type. and if it doesn't? she returns false. no in-between, no "it's complicated", just true or false. periodt. π₯
π¦ SEE ALSO π¦
okay this is the part where she tags all her mutuals. it's giving "linked in the bio" energy, ngl π β and the whole thing lives in the kernel file ./include/linux/surface_aggregator/device.h:
- 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) to_ssam_device(9)to_ssam_device_driver(9)ssam_device_mark_hot_removed(9)ssam_device_is_hot_removed(9)ssam_device_get(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)
like, that's the whole friend group right there. the way they all show up in the same header file is so π found family π. iykyk. π
word of warning bestie: this page only tells you how to check the type β it does not promise anything about what happens after. don't get creative. π
and that's the whole page, mwah π β brought to you by the source file ./include/linux/surface_aggreg..., dated October 2026. it's giving vintage but make it future. stay iconic, go check your device types, and remember: true or false, no in-between. πβ¨π
π¦ 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