(cls, size:int, align=0x1000)
| 228 | |
| 229 | @classmethod |
| 230 | def alloc_vaddr(cls, size:int, align=0x1000) -> int: |
| 231 | assert cls.va_allocator is not None, "must be set" |
| 232 | return cls.va_allocator.alloc(size, max((1 << (size.bit_length() - 1)), align)) |
| 233 | |
| 234 | @functools.cache # pylint: disable=method-cache-max-size-none |
| 235 | def identity_va(self, uncached:bool) -> int: |
no test coverage detected