aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAsahi Lina <[email protected]>2025-04-10 23:55:21 +0000
committerDanilo Krummrich <[email protected]>2025-04-24 11:50:05 +0000
commit9a69570682b1f179a8bd9439a24495e7a6246aa9 (patch)
tree90f61f868936b67985d11569330d32135592da5c /rust/helpers/helpers.c
parentdrm: drv: implement __drm_dev_alloc() (diff)
downloadkernel-9a69570682b1f179a8bd9439a24495e7a6246aa9.tar.gz
kernel-9a69570682b1f179a8bd9439a24495e7a6246aa9.zip
rust: drm: ioctl: Add DRM ioctl abstraction
DRM drivers need to be able to declare which driver-specific ioctls they support. Add an abstraction implementing the required types and a helper macro to generate the ioctl definition inside the DRM driver. Note that this macro is not usable until further bits of the abstraction are in place (but it will not fail to compile on its own, if not called). Signed-off-by: Asahi Lina <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ MISC fixes * wrap raw_data in Opaque to avoid UB when creating a reference * fix IOCTL sample declaration * fix safety comment of IOCTL argument * original source archive: https://archive.is/LqHDQ - Danilo ] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions