diff options
author | Sean Christopherson <seanjc@google.com> | 2025-05-08 18:46:42 +0000 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-05-16 09:35:26 -0700 |
commit | d761c14d902e41c1e4c9b57f0e57593b7dfc56a9 (patch) | |
tree | b473d20f70f070110135702d2c9cddaaad8630ca /scripts/lib/kdoc/kdoc_parser.py | |
parent | 5e9ac644c40f8315877343034d1d6a8e056bd1dc (diff) |
KVM: selftests: Extract guts of THP accessor to standalone sysfs helpers
Extract the guts of thp_configured() and get_trans_hugepagesz() to
standalone helpers so that the core logic can be reused for other sysfs
files, e.g. to query numa_balancing.
Opportunistically assert that the initial fscanf() read at least one byte,
and add a comment explaining the second call to fscanf().
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/r/20250508184649.2576210-2-jthoughton@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions