parse_test_vector(9)
π parse_test_vector(9) π
okay so this is parse_test_vector(9) from the Kernel API Manual β manual name folded in near the top like a lil name tag, because we're cute like that. This page is about parsing a single test vector string, and the energy is very "I know her." I'm obsessed, honestly. β¨
πΈ NAME πΈ
parse_test_vector β parse a single test vector string. It's giving short, sweet, iconic.
β¨ SYNOPSIS β¨
The exact signature, no edits, no cap:
int parse_test_vector (const char *entry , u64 *dpa , int *pos , u8
*r_eiw , u16 *r_eig , u8 *hb_ways , int *math , u64 *expect_hpa );
π ARGUMENTS π
The ARGUMENTS section is serving us -- undescribed -- eight times in a row, which is a choice π. But I'm keeping every single one, exactly:
entryβ-- undescribed --dpaβ-- undescribed --posβ-- undescribed --r_eiwβ-- undescribed --r_eigβ-- undescribed --hb_waysβ-- undescribed --mathβ-- undescribed --expect_hpaβ-- undescribed --
not me reading that and being like "bestie where is the info" π β but don't worry, DESCRIPTION has the actual tea below, iykyk.
π DESCRIPTION π
Here's what DESCRIPTION spills, with the labels exactly as written:
entry: test vector string to parsedpa: device physical addresspos: expected position in region interleaver_eiw: region encoded interleave waysr_eig: region encoded interleave granularityhb_ways: host bridge interleave waysmath: interleave arithmetic (MODULO_MATHorXOR_MATH)expect_spa: expected system physical address
not me noticing that DESCRIPTION saysexpect_spawhile ARGUMENTS saysexpect_hpaβ I'm just the messenger, bestie π.
π RETURN π
0 on success, negative error code on failure. That's the whole return vibe, periodt.
π¦ SEE ALSO π¦
Kernel file ./tools/testing/cxl/test/cxl_translate.c is right there, plus to_hpa(9), to_dpa(9), to_pos(9), and run_translation_test(9). Go off, icons. π
mwah π β source/version: ./tools/testing/cxl/test Β· date: October 2026.
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms