crash.types.klist module¶
-
crash.types.klist.klist_for_each(klist: gdb.Value) → Iterable[gdb.Value][source]¶ Iterate over a klist and yield each node
Parameters: klist – The list to iterate. The value must be of type
struct klistorstruct klist *.Yields: - The next node in the list. The value is of type
struct klist_node.
-
crash.types.klist.klist_for_each_entry(klist: gdb.Value, gdbtype: gdb.Type, member: str) → Iterable[gdb.Value][source]¶ Iterate over a klist and yield each node’s containing object
Parameters: - klist – The list to iterate. The value must be of type
struct klistorstruct klist *. - gdbtype – The type of the containing object
- member – The name of the member in the containing object that corresponds to the klist_node
Yields: gdb.Value– The next node in the list. The value is of the specified type.- klist – The list to iterate. The value must be of type