vfio_pci_co...ersect_range(9)
π NAME π
vfio_pci_core_range_intersect_range β bestie, this one figures out whether a buffer and a register offset range are overlapping, and if they are, where and how much. Like a vibe check but for memory ranges. β¨
(This is from the Kernel API Manual, iykyk π)
πΈ SYNOPSIS πΈ
bool vfio_pci_core_range_intersect_range(loff_t buf_start, size_t buf_cnt,
loff_t reg_start, size_t reg_cnt,
loff_t *buf_offset,
size_t *intersect_count,
size_t *register_offset);
π¦ ARGUMENTS π¦
buf_startβ where the buffer starts, offset-wise. Main character energy for the buffer side πbuf_cntβ how many bytes the buffer has. Like, its whole size, no cap.reg_startβ the starting register offset. The other half of this little meet-cute π«Άreg_cntβ number of bytes in the register. Its size, periodt.buf_offsetβ output! Where the overlap kicks off inside the buffer. πintersect_countβ output! How many bytes actually overlap. The number we've all been waiting for πregister_offsetβ output! Where the overlap starts inside the register. Slay. π
π₯ RETURN π₯
true if there is overlap, false if there isn't β literally that simple, no crumbs. And when there is overlap, the start and size come back to you through the function args, which are those pointer params up there π
π§ SEE ALSO π§
Kernel file ./drivers/vfio/pci/vfio_pci_config.c β go read it, bestie, it's giving source of truth πβ¨
Ok that's the whole page, you ate it up ngl π
Alright that's it from ./drivers/vfio/pci, dated October 2026 β version vibes baked right in, mwah ππ¦ See you in the kernel, bestie π
π¦ 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