mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 01:16:50 +00:00
b06d296a1b
For ioctl numbers that do not require any parameters, make ioctl_io_nr and related macros generate a constant rather than a function with no parameters. This makes the code that uses these constants more idiomatic and also allows using the constants in match statements (see an example in virtio/fs/passthrough.rs). BUG=None TEST=tools/dev_container tools/presubmit Change-Id: Id52817528d770c5dbbe2ce7928c9f31a15c83d83 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5648647 Reviewed-by: Noah Gold <nkgold@google.com> Reviewed-by: Frederick Mayle <fmayle@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
OWNERS |