MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / l1_entry_make

Function l1_entry_make

block/src/qcow/util.rs:67–69  ·  view source on GitHub ↗

Make L1 entry with optional flags.

(cluster_addr: u64, refcount_is_one: bool)

Source from the content-addressed store, hash-verified

65
66/// Make L1 entry with optional flags.
67pub(super) fn l1_entry_make(cluster_addr: u64, refcount_is_one: bool) -> u64 {
68 (cluster_addr & L1_TABLE_OFFSET_MASK) | (refcount_is_one as u64 * CLUSTER_USED_FLAG)
69}
70
71/// Ceiling of the division of `dividend`/`divisor`.
72pub(super) fn div_round_up_u32(dividend: u32, divisor: u32) -> u32 {

Callers 4

grow_l1_tableMethod · 0.85
sync_cachesMethod · 0.85
grow_l1_tableMethod · 0.85
sync_cachesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected