pci_set_cacheline_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, today’s page is pci_set_cacheline_size(9) from the Kernel API Manual β€” manual name folded in right here, no copied header line, periodt. This function is the one that ensures the CACHE_LINE_SIZE register is programmed. Slay. ✨


✨ SYNOPSIS ✨

int pci_set_cacheline_size (struct pci_dev *dev );

That’s the exact signature, no cap. 🫢


🌸 ARGUMENTS 🌸

  • dev β€” the PCI device for which MWI is to be enabled. Like, this is the device you’re doing the MWI thing for, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this is a helper function for pci_set_mwi. It was originally copied from drivers/net/acenic.c. Also, the copyright line is: Copyright 1998-2001 by Jes Sorensen, <jestrained-monkey.org>. Respect the OGs, okay? πŸ’…


πŸŽ€ RETURN πŸŽ€

On error you get an appropriate -ERRNO error value, and on success you get zero. That’s the whole return vibe. 😌


🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/pci.c plus literally the entire PCI extended family β€” every single reference, no skips, no cap: πŸ”₯


That’s the page, bestie. Source/version is ./drivers/pci, the date is October 2026, and the manual name is still pci_set_cacheline_size(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from