get_function_0(9)
π get_function_0 β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual π and lemme tell you about get_function_0, which is giving "small function, big main character energy" fr fr.
πΈ NAME πΈ
get_function_0 β find a related PCI device (function 0) π
like, that's literally it. that's the whole gig. she finds the related device on function 0 and she does it slayfully β¨
π¦ SYNOPSIS π¦
struct pci_dev * get_function_0 (struct pci_dev *dev );
no cap, that's the exact signature, copy it character for character or the compiler will absolutely humble you π
π ARGUMENTS π
devβ the PCI device to match π«Ά that's the one you're handing her so she knows what to go looking for
π DESCRIPTION π
so here's the vibe check: she returns a pointer to the related device π«
and if there's no related device to be found? she returns null. not found, not her problem, she said what she said π
lowkey important: null here means not found β that's the documented behavior, bestie, don't go reading extra lore into it π
π SEE ALSO π
- kernel file
./drivers/misc/ocxl/config.cβ where the magic lives get_dvsec_vendor0(9)β¨read_template_version(9)πread_afu_lpc_memory_info(9)π§
go read those too, iykyk π₯
and that's the page, bestie π sign-off time: this lil masterpiece comes to you from ./drivers/misc/ocxl, dated October 2026 β iconic, timeless, no notes ππ
π¦ 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