diff options
| author | Sean Christopherson <[email protected]> | 2025-05-08 18:46:42 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2025-05-16 16:35:26 +0000 |
| commit | d761c14d902e41c1e4c9b57f0e57593b7dfc56a9 (patch) | |
| tree | b473d20f70f070110135702d2c9cddaaad8630ca /rust/helpers/pci.c | |
| parent | KVM: selftests: Add a test for x86's fastops emulation (diff) | |
| download | kernel-d761c14d902e41c1e4c9b57f0e57593b7dfc56a9.tar.gz kernel-d761c14d902e41c1e4c9b57f0e57593b7dfc56a9.zip | |
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 <[email protected]>
Signed-off-by: James Houghton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions
