read_template_version(9)
πΈ NAME πΈ
read_template_version β Read the template version from the AFU. This is read_template_version(9), part of the Kernel API Manual, and it's giving "small but iconic kernel page" energy π«Ά.
π¦ SYNOPSIS π¦
Okay so the signature is literally:
int read_template_version (struct pci_dev *dev , struct ocxl_fn_config
*fn , u16 *len , u16 *version );
π ARGUMENTS π
devβ the device for the AFU. The main-character device, no cap π .fnβ the AFU offsets. Yes, "fn" is the offsets here; stay with me π¦.lenβ outputs the template length. It's an output, so it's gonna hold the template length πΈ.versionβ outputs themajor<<8,minorversion. Exactly that combo, periodt β.
β¨ DESCRIPTION β¨
Returns 0 on success, negative on failure. That's it, that's the whole vibe check β success is 0, failure is negative π.
π₯ SEE ALSO π₯
Kernel file ./drivers/misc/ocxl/config.c has the related lore, plus these function references: get_function_0(9), get_dvsec_vendor0(9), and read_afu_lpc_memory_info(9) π.
Signed off with π from ./drivers/misc/ocxl, dated October 2026, for read_template_version(9). Bye bestie, go read those template versions π§β¨.
π¦ 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