to_ssam_device_driver(9)
π to_ssam_device_driver(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for to_ssam_device_driver, and it's literally one of those tiny lil helper functions that does exactly one thing and does it adorably. π
β¨ NAME β¨
to_ssam_device_driver β casts the given device driver to a SSAM client device driver. that's it. that's the whole job. iconic behavior honestly. π
πΈ SYNOPSIS πΈ
to_ssam_device_driver (d );
π¦ ARGUMENTS π¦
dβ the driver to cast. that's your input, bestie, hand it over. π«Ά
π DESCRIPTION π
so what does it actually do? it casts the given struct device_driver to a struct ssam_device_driver. simple, clean, no notes. β¨
β οΈ but listen β the caller has to ensure that the given driver is actually enclosed in a struct ssam_device_driver. like, that's on you. no cap, this function is not gonna check for you. it's giving "trust fall" energy. π
π₯ RETURN π₯
returns the pointer to the struct ssam_device_driver wrapping the given device driver d. one pointer in, one pointer out, we love a low-effort legend. π
π SEE ALSO π
okay this is the part where the manpage goes full main-character-group-chat and name-drops everybody. π
Kernel file ./include/linux/surface_aggregator/device.henum 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)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?? the whole friend group showed up. iykyk. ππ«Ά
and that's the page!! no frills, just a cast and a vibe check. shoutout to the source file ./include/linux/surface_aggreg... and to October 2026 for the timestamp β we stan a documented function. go read the kernel, bestie, slay. π§βπΈ
π¦ 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