crash.subsystem.storage.blocksq module¶
- crash.subsystem.storage.blocksq.sq_for_each_request_in_queue(queue: Value) Iterable[Value][source]¶
Iterates over each
struct requestin request_queueThis method iterates over the
request_queue’s queuelist and returns a request for each member.- Parameters:
queue – The
struct request_queueused to iterate. The value must be of typestruct request_queue.- Yields:
gdb.Value– Eachstruct requestcontained within therequest_queue’s queuelist. The value is of typestruct 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)