@flag
def pmalloc_method_simple() -> bool:
- return pmalloc_method.val == "simple"
+ when (pmalloc_method is "simple")
@flag
def pmalloc_method_buddy() -> bool:
- return pmalloc_method.val == "buddy"
+ when (pmalloc_method is "buddy")
@flag
def pmalloc_method_ncontig() -> bool:
- return pmalloc_method.val == "ncontig"
+ when (pmalloc_method is "ncontig")
@"Allocation policy"
def pmalloc_method() -> "simple" | "buddy" | "ncontig":
@"PMalloc Thresholds"
def pmalloc_simple_po_thresholds():
- require(pmalloc_method_simple)
+ require (pmalloc_method_simple)
@"Maximum cached order-0 free pages"
def pmalloc_simple_max_po0() -> int: