crosvm/base
Daniel Verkamp b06d296a1b base: define ioctls as consts rather than functions
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>
2024-06-25 19:17:21 +00:00
..
base_event_token_derive
src base: define ioctls as consts rather than functions 2024-06-25 19:17:21 +00:00
tests base: move fork_process to jail crate 2024-05-22 21:21:59 +00:00
.build_test_serial
Cargo.toml base: move fork_process to jail crate 2024-05-22 21:21:59 +00:00