summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2026-10-13 12:29:02 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-13 15:57:43 +0200
commitba9d2c7ea7f8fd02726241e9b93a2a31d30c77ea (patch)
treeabe50d2c9e7f05a65b462ca53bce564581282e0b /tools/lib/python/kdoc/python_version.py
parent0ada43e79a5f23154c5146c3eaf595c9c1146976 (diff)
rust: miscdevice: add registration data to MiscDevice
Currently when fds for a miscdevice are opened, the only "global" data they are given access to is the MiscDeviceRegistration value. However, this value doesn't let you store any user-provided data, so there is no way for different fds from the same miscdevice to interact with each other. Thus, let the user specify a type to be stored in the MiscDeviceRegistration in which the user can store whichever data they would like. The intended user of this patch is Rust course material. MiscDevice is a nice and relatively easy to use API for someone's first driver, and being able to persist data from fd to fd allows the student to interact with their driver using 'cat' and 'echo', even though each call opens a new fd. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20261013-miscdevice-data-v2-1-d727496ed705@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions