MCPcopy Create free account
hub / github.com/asterinas/vostd / alloc_inner

Method alloc_inner

kernel/comps/block/src/bio.rs:412–443  ·  view source on GitHub ↗

The inner function that do the real segment allocation. Support two extended parameters: 1. `offset_within_first_block`: the offset (in bytes) within the first block. 2. `len`: the exact length (in bytes) of the wanted segment. (May less than `nblocks * BLOCK_SIZE`) # Panics If the `offset_within_first_block` or `len` is not sector aligned, this method will panic.

(
        nblocks: usize,
        offset_within_first_block: usize,
        len: usize,
        direction: BioDirection,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

target_poolFunction · 0.85
newFunction · 0.85
alloc_segmentMethod · 0.80
mapFunction · 0.50
allocMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected