move get_flags_list at bottom

This commit is contained in:
Abyss Watcher
2025-01-02 14:47:18 +01:00
parent a07c5d3063
commit 7278bb244f
@@ -2628,6 +2628,19 @@ class page(objects.StructType):
page_data = physical_layer.read(page_paddr, vmlinux_layer.page_size)
return page_data
def get_flags_list(self) -> List[str]:
"""Returns a list of page flags
Returns:
List of page flags
"""
flags = []
for name, value in self.pageflags_enum.items():
if self.flags & (1 << value) != 0:
flags.append(name)
return flags
class IDR(objects.StructType):
IDR_BITS = 8