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

Method enqueue

kernel/comps/block/src/request_queue.rs:59–81  ·  view source on GitHub ↗

Enqueues a `SubmittedBio` to this queue. When enqueueing the `SubmittedBio`, try to insert it into the last request if the type is same and the sector range is contiguous. Otherwise, creates and inserts a new request for the `SubmittedBio`. This method will wake up the waiter if a new `BioRequest` is enqueued.

(&self, bio: SubmittedBio)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

submitMethod · 0.45

Calls 9

can_mergeMethod · 0.80
num_segmentsMethod · 0.80
merge_bioMethod · 0.80
inc_num_requestsMethod · 0.80
lenMethod · 0.45
segmentsMethod · 0.45
lockMethod · 0.45
push_frontMethod · 0.45
wake_allMethod · 0.45

Tested by

no test coverage detected