qemu/rust/qemu-api/src
Zhao Liu 8d9502b4e9 rust/timer: Define NANOSECONDS_PER_SECOND binding as u64
NANOSECONDS_PER_SECOND is often used in operations with get_ns(), which
currently returns a u64.

Therefore, define a new NANOSECONDS_PER_SECOND binding is with u64 type
to eliminate unnecessary type conversions (from u32 to u64).

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250414144943.1112885-6-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-05-02 17:37:46 +02:00
..
assertions.rs rust: assertions: Support index field wrapped in BqlCell 2025-05-02 17:37:46 +02:00
bindings.rs rust: bindings: remove more unnecessary Send/Sync impls 2025-03-06 12:44:47 +01:00
bitops.rs rust: add a bit operation module 2024-12-10 18:49:26 +01:00
c_str.rs rust: qemu_api: add a documentation header for all modules 2025-02-13 12:51:34 +01:00
callbacks.rs rust: callbacks: allow passing optional callbacks as () 2025-02-13 12:19:33 +01:00
cell.rs rust: cell: add full example of declaring a SysBusDevice 2025-03-06 12:44:47 +01:00
chardev.rs rust: chardev: provide basic bindings to character devices 2025-03-06 12:44:47 +01:00
errno.rs rust: add module to convert between success/-errno and io::Result 2025-02-25 16:18:08 +01:00
irq.rs rust: irq: wrap IRQState with Opaque<> 2025-03-06 12:44:46 +01:00
lib.rs rust: add module to convert between success/-errno and io::Result 2025-02-25 16:18:08 +01:00
memory.rs rust: qom: remove operations on &mut 2025-03-06 12:44:47 +01:00
module.rs rust: rename qemu-api modules to follow C code a bit more 2024-12-19 19:36:37 +01:00
offset_of.rs rust: qemu_api: add a documentation header for all modules 2025-02-13 12:51:34 +01:00
prelude.rs rust: qom: remove operations on &mut 2025-03-06 12:44:47 +01:00
qdev.rs rust: chardev: wrap Chardev with Opaque<> 2025-03-06 12:44:47 +01:00
qom.rs qom: Constify TypeInfo::interfaces 2025-04-25 17:00:41 +02:00
sysbus.rs rust: sysbus: wrap SysBusDevice with Opaque<> 2025-03-06 12:44:47 +01:00
timer.rs rust/timer: Define NANOSECONDS_PER_SECOND binding as u64 2025-05-02 17:37:46 +02:00
vmstate.rs vmstate: support varray for vmstate_clock! 2025-05-02 17:37:46 +02:00
zeroable.rs rust: chardev: provide basic bindings to character devices 2025-03-06 12:44:47 +01:00