crash.subsystem.storage.blocksq module

exception crash.subsystem.storage.blocksq.NoQueueError[source]

Bases: RuntimeError

crash.subsystem.storage.blocksq.sq_for_each_request_in_queue(queue: Value) Iterable[Value][source]

Iterates over each struct request in request_queue

This method iterates over the request_queue’s queuelist and returns a request for each member.

Parameters:

queue – The struct request_queue used to iterate. The value must be of type struct request_queue.

Yields:

gdb.Value – Each struct request contained within the request_queue’s queuelist. The value is of type struct request.

crash.subsystem.storage.blocksq.sq_requests_in_flight(queue: Value) Tuple[int, int][source]

Report how many requests are in flight for this queue

Parameters:

queue – The request queue to inspect for requests in flight. The value must be of type struct request_queue.

Returns:

The requests in flight. The first member of the 2-tuple is the number of async requests, the second is the number of sync requests.

Return type:

(int, int)

crash.subsystem.storage.blocksq.sq_requests_queued(queue: Value) Tuple[int, int][source]

Report how many requests are queued for this queue

Parameters:

queue – The request queue to inspect for queued requests. The value must be of type struct request_queue.

Returns:

The queued requests. The first member of the 2-tuple is the number of async requests, the second is the number of sync requests.

Return type:

(int, int)